All-In-One_Facebook_Widgets - Version 1.0.0

Version Notes

1.0.0 stable

Download this release

Release Info

Developer Dmitry Poddubny
Extension All-In-One_Facebook_Widgets
Version 1.0.0
Comparing to
See all releases


Version 1.0.0

Files changed (25) hide show
  1. app/code/community/Magazento/Facebook/Adminhtml/Model/System/Config/Source/Color.php +11 -0
  2. app/code/community/Magazento/Facebook/Adminhtml/Model/System/Config/Source/Font.php +16 -0
  3. app/code/community/Magazento/Facebook/Adminhtml/Model/System/Config/Source/Layout.php +12 -0
  4. app/code/community/Magazento/Facebook/Adminhtml/Model/System/Config/Source/Size.php +11 -0
  5. app/code/community/Magazento/Facebook/Adminhtml/Model/System/Config/Source/Type.php +46 -0
  6. app/code/community/Magazento/Facebook/Adminhtml/Model/System/Config/Source/Verb.php +11 -0
  7. app/code/community/Magazento/Facebook/Block/Developer.php +61 -0
  8. app/code/community/Magazento/Facebook/Helper/Data.php +5 -0
  9. app/code/community/Magazento/Facebook/etc/config.xml +196 -0
  10. app/code/community/Magazento/Facebook/etc/system.xml +789 -0
  11. app/design/frontend/default/default/layout/magazento_facebook.xml +375 -0
  12. app/design/frontend/default/default/template/magazento/facebook/activity.phtml +6 -0
  13. app/design/frontend/default/default/template/magazento/facebook/comments.phtml +6 -0
  14. app/design/frontend/default/default/template/magazento/facebook/facepile.phtml +5 -0
  15. app/design/frontend/default/default/template/magazento/facebook/graph_like.phtml +21 -0
  16. app/design/frontend/default/default/template/magazento/facebook/graph_like_head.phtml +10 -0
  17. app/design/frontend/default/default/template/magazento/facebook/like.phtml +5 -0
  18. app/design/frontend/default/default/template/magazento/facebook/likebox.phtml +6 -0
  19. app/design/frontend/default/default/template/magazento/facebook/livestream.phtml +5 -0
  20. app/design/frontend/default/default/template/magazento/facebook/recommendations.phtml +7 -0
  21. app/design/frontend/default/default/template/magazento/facebook/send.phtml +5 -0
  22. app/etc/modules/Magazento_Facebook.xml +9 -0
  23. package.xml +18 -0
  24. skin/frontend/default/default/magazento/Facebook/fb.css +15 -0
  25. skin/frontend/default/default/magazento/Facebook/promo.jpg +0 -0
app/code/community/Magazento/Facebook/Adminhtml/Model/System/Config/Source/Color.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Magazento_Facebook_Adminhtml_Model_System_Config_Source_Color
3
+ {
4
+ public function toOptionArray()
5
+ {
6
+ return array(
7
+ array('value'=>'light', 'label'=>Mage::helper('facebook')->__('Light')),
8
+ array('value'=>'dark', 'label'=>Mage::helper('facebook')->__('Dark'))
9
+ );
10
+ }
11
+ }
app/code/community/Magazento/Facebook/Adminhtml/Model/System/Config/Source/Font.php ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Magazento_Facebook_Adminhtml_Model_System_Config_Source_Font
3
+ {
4
+ public function toOptionArray()
5
+ {
6
+ return array(
7
+ array('value'=>'', 'label'=>Mage::helper('facebook')->__('')),
8
+ array('value'=>'arial', 'label'=>Mage::helper('facebook')->__('arial')),
9
+ array('value'=>'lucida grande', 'label'=>Mage::helper('facebook')->__('lucida grande')),
10
+ array('value'=>'segoe ui', 'label'=>Mage::helper('facebook')->__('segoe ui')),
11
+ array('value'=>'tahoma', 'label'=>Mage::helper('facebook')->__('tahoma')),
12
+ array('value'=>'trebuchet ms', 'label'=>Mage::helper('facebook')->__('trebuchet ms')),
13
+ array('value'=>'verdana', 'label'=>Mage::helper('facebook')->__('verdana'))
14
+ );
15
+ }
16
+ }
app/code/community/Magazento/Facebook/Adminhtml/Model/System/Config/Source/Layout.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Magazento_Facebook_Adminhtml_Model_System_Config_Source_Layout
3
+ {
4
+ public function toOptionArray()
5
+ {
6
+ return array(
7
+ array('value'=>'standard', 'label'=>Mage::helper('facebook')->__('standard')),
8
+ array('value'=>'button_count', 'label'=>Mage::helper('facebook')->__('button_count')),
9
+ array('value'=>'box_count', 'label'=>Mage::helper('facebook')->__('box_count')),
10
+ );
11
+ }
12
+ }
app/code/community/Magazento/Facebook/Adminhtml/Model/System/Config/Source/Size.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Magazento_Facebook_Adminhtml_Model_System_Config_Source_Size
3
+ {
4
+ public function toOptionArray()
5
+ {
6
+ return array(
7
+ array('value'=>'small', 'label'=>Mage::helper('facebook')->__('small')),
8
+ array('value'=>'large', 'label'=>Mage::helper('facebook')->__('large')),
9
+ );
10
+ }
11
+ }
app/code/community/Magazento/Facebook/Adminhtml/Model/System/Config/Source/Type.php ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Magazento_Facebook_Adminhtml_Model_System_Config_Source_Type
3
+ {
4
+ public function toOptionArray()
5
+ {
6
+ return array(
7
+ array('value'=>'', 'label'=>Mage::helper('facebook')->__('')),
8
+ array('value'=>'activity', 'label'=>Mage::helper('facebook')->__('activity')),
9
+ array('value'=>'actor', 'label'=>Mage::helper('facebook')->__('actor')),
10
+ array('value'=>'article', 'label'=>Mage::helper('facebook')->__('article')),
11
+ array('value'=>'athlete', 'label'=>Mage::helper('facebook')->__('athlete')),
12
+ array('value'=>'author', 'label'=>Mage::helper('facebook')->__('author')),
13
+ array('value'=>'band', 'label'=>Mage::helper('facebook')->__('band')),
14
+ array('value'=>'bar', 'label'=>Mage::helper('facebook')->__('bar')),
15
+ array('value'=>'blog', 'label'=>Mage::helper('facebook')->__('blog')),
16
+ array('value'=>'book', 'label'=>Mage::helper('facebook')->__('book')),
17
+ array('value'=>'cafe', 'label'=>Mage::helper('facebook')->__('cafe')),
18
+ array('value'=>'cause', 'label'=>Mage::helper('facebook')->__('cause')),
19
+ array('value'=>'city', 'label'=>Mage::helper('facebook')->__('city')),
20
+ array('value'=>'company', 'label'=>Mage::helper('facebook')->__('company')),
21
+ array('value'=>'country', 'label'=>Mage::helper('facebook')->__('country')),
22
+ array('value'=>'director', 'label'=>Mage::helper('facebook')->__('director')),
23
+ array('value'=>'drink', 'label'=>Mage::helper('facebook')->__('drink')),
24
+ array('value'=>'food', 'label'=>Mage::helper('facebook')->__('food')),
25
+ array('value'=>'game', 'label'=>Mage::helper('facebook')->__('game')),
26
+ array('value'=>'government', 'label'=>Mage::helper('facebook')->__('government')),
27
+ array('value'=>'hotel', 'label'=>Mage::helper('facebook')->__('hotel')),
28
+ array('value'=>'landmark', 'label'=>Mage::helper('facebook')->__('landmark')),
29
+ array('value'=>'movie', 'label'=>Mage::helper('facebook')->__('movie')),
30
+ array('value'=>'musician', 'label'=>Mage::helper('facebook')->__('musician')),
31
+ array('value'=>'non_profit', 'label'=>Mage::helper('facebook')->__('non_profit')),
32
+ array('value'=>'politician', 'label'=>Mage::helper('facebook')->__('politician')),
33
+ array('value'=>'product', 'label'=>Mage::helper('facebook')->__('product')),
34
+ array('value'=>'public_figure', 'label'=>Mage::helper('facebook')->__('public_figure')),
35
+ array('value'=>'restaurant', 'label'=>Mage::helper('facebook')->__('restaurant')),
36
+ array('value'=>'school', 'label'=>Mage::helper('facebook')->__('school')),
37
+ array('value'=>'sport', 'label'=>Mage::helper('facebook')->__('sport')),
38
+ array('value'=>'sports_league', 'label'=>Mage::helper('facebook')->__('sports_league')),
39
+ array('value'=>'sports_team', 'label'=>Mage::helper('facebook')->__('sports_team')),
40
+ array('value'=>'state_province', 'label'=>Mage::helper('facebook')->__('state_province')),
41
+ array('value'=>'tv_show', 'label'=>Mage::helper('facebook')->__('tv_show')),
42
+ array('value'=>'university', 'label'=>Mage::helper('facebook')->__('university')),
43
+ array('value'=>'website', 'label'=>Mage::helper('facebook')->__('website'))
44
+ );
45
+ }
46
+ }
app/code/community/Magazento/Facebook/Adminhtml/Model/System/Config/Source/Verb.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Magazento_Facebook_Adminhtml_Model_System_Config_Source_Verb
3
+ {
4
+ public function toOptionArray()
5
+ {
6
+ return array(
7
+ array('value'=>'like', 'label'=>Mage::helper('facebook')->__('Like')),
8
+ array('value'=>'recommend', 'label'=>Mage::helper('facebook')->__('Recommend'))
9
+ );
10
+ }
11
+ }
app/code/community/Magazento/Facebook/Block/Developer.php ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Magazento_Facebook_Block_Developer extends Mage_Adminhtml_Block_System_Config_Form_Fieldset {
4
+
5
+ public function render(Varien_Data_Form_Element_Abstract $element) {
6
+ $content = '<p></p>';
7
+ $content.= '<style>';
8
+ $content.= '.magazento {
9
+ background:#FAFAFA;
10
+ border: 1px solid #CCCCCC;
11
+ margin-bottom: 10px;
12
+ padding: 10px;
13
+ height:auto;
14
+
15
+ }
16
+ .magazento h3 {
17
+ color: #EA7601;
18
+ }
19
+ .contact-type {
20
+ color: #EA7601;
21
+ font-weight:bold;
22
+ }
23
+ .magazento img {
24
+ border: 1px solid #CCCCCC;
25
+ float:left;
26
+ height:235px;
27
+ }
28
+ .magazento .info {
29
+ border: 1px solid #CCCCCC;
30
+ background:#E7EFEF;
31
+ padding: 5px 10px 0 5px;
32
+ margin-left:210px;
33
+ height:230px;
34
+ }
35
+ ';
36
+ $content.= '</style>';
37
+
38
+
39
+ $content.= '<div class="magazento">';
40
+ $content.= '<a href="http://www.magazento.com/" target="_blank"><img src="'.Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN).'frontend/default/default/magazento/facebook/promo.jpg" alt="www.magazento.com" /></a>';
41
+ $content.= '<div class="info">';
42
+ $content.= '<h3>Magento extensions</h3>';
43
+ $content.= '<p><a href="http://www.magazento.com/" target="_blank">www.magazento.com</a> - experts are specializing in custom extension development for the world\'s fastest growing eCommerce platform - Magento. All extensions are designed for the Magento CMS archetecture, using native libraries and only the most efficient approaches to development. If you need Magento development or have a concept for an extension you\'d like developed for the Magento CMS platform, please contact us.</p>';
44
+ $content.= '--------------------------------------------------------<br>';
45
+ $content.= '<span class="contact-type">Company website:</span> <a href="http://www.magazento.com/" target="_blank">www.magazento.com</a> <br/>';
46
+ $content.= '<span class="contact-type">E-mail:</span> magazento@gmail.com <br/>';
47
+ $content.= '<span class="contact-type">Skype:</span> karser2p <br/>';
48
+ $content.= '<span class="contact-type">Magento:</span> <a href="http://www.magentocommerce.com/magento-connect/developer/Magazento" target="_blank">visit</a> <br/>';
49
+ $content.= '<span class="contact-type">Facebook:</span> <a href="http://www.facebook.com/dmitry.poddubny" target="_blank">visit</a> <br/>';
50
+
51
+ $content.= '</div>';
52
+
53
+ $content.= '</div>';
54
+
55
+ return $content;
56
+
57
+
58
+ }
59
+
60
+
61
+ }
app/code/community/Magazento/Facebook/Helper/Data.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+ class Magazento_Facebook_Helper_Data extends Mage_Core_Helper_Abstract
3
+ {
4
+
5
+ }
app/code/community/Magazento/Facebook/etc/config.xml ADDED
@@ -0,0 +1,196 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+
3
+ <config>
4
+ <modules>
5
+ <Magazento_Facebook>
6
+ <version>1.0.0</version>
7
+ </Magazento_Facebook>
8
+ </modules>
9
+ <frontend>
10
+ <layout>
11
+ <updates>
12
+ <facebook>
13
+ <file>magazento_facebook.xml</file>
14
+ </facebook>
15
+ </updates>
16
+ </layout>
17
+ </frontend>
18
+
19
+ <global>
20
+ <blocks>
21
+ <facebook>
22
+ <class>Magazento_Facebook_Block</class>
23
+ </facebook>
24
+ </blocks>
25
+ <helpers>
26
+ <facebook>
27
+ <class>Magazento_Facebook_Helper</class>
28
+ </facebook>
29
+ </helpers>
30
+ <resources>
31
+ <facebook_setup>
32
+ <setup>
33
+ <module>Magazento_Facebook</module>
34
+ </setup>
35
+ <connection>
36
+ <use>core_setup</use>
37
+ </connection>
38
+ </facebook_setup>
39
+ <facebook_write>
40
+ <connection>
41
+ <use>core_write</use>
42
+ </connection>
43
+ </facebook_write>
44
+ <facebook_read>
45
+ <connection>
46
+ <use>core_read</use>
47
+ </connection>
48
+ </facebook_read>
49
+ </resources>
50
+ </global>
51
+ <adminhtml>
52
+ <acl>
53
+ <resources>
54
+ <admin>
55
+ <children>
56
+ <system>
57
+ <children>
58
+ <config>
59
+ <children>
60
+ <facebook translate="title" module="facebook">
61
+ <title>facebook</title>
62
+ </facebook>
63
+ </children>
64
+ </config>
65
+ </children>
66
+ </system>
67
+ </children>
68
+ </admin>
69
+ </resources>
70
+ </acl>
71
+ <menu>
72
+ <magazento translate="title" module="facebook">
73
+ <title>Magazento</title>
74
+ <sort_order>65</sort_order>
75
+ <children>
76
+ <facebook translate="title" module="facebook">
77
+ <title>Facebook</title>
78
+ <sort_order>65</sort_order>
79
+ <children>
80
+ <settings translate="title" module="facebook">
81
+ <title>Settings</title>
82
+ <action>adminhtml/system_config/edit/section/facebook</action>
83
+ <sort_order>40</sort_order>
84
+ </settings>
85
+ </children>
86
+ </facebook>
87
+ </children>
88
+ </magazento>
89
+ </menu>
90
+ </adminhtml>
91
+ <default>
92
+ <facebook>
93
+ <general>
94
+ <enabled>1</enabled>
95
+ <appid></appid>
96
+ <appkey></appkey>
97
+ </general>
98
+ <likebutton>
99
+ <homecontent>0</homecontent>
100
+ <categorycontent>0</categorycontent>
101
+ <productcontent>0</productcontent>
102
+ <layout>button_count</layout>
103
+ <showfaces>false</showfaces>
104
+ <width>450</width>
105
+ <verb>like</verb>
106
+ <font></font>
107
+ <color>light</color>
108
+ </likebutton>
109
+ <graphlikebutton>
110
+ <homecontent>0</homecontent>
111
+ <categorycontent>0</categorycontent>
112
+ <productcontent>1</productcontent>
113
+ <type>product</type>
114
+ </graphlikebutton>
115
+ <sendbutton>
116
+ <homecontent>0</homecontent>
117
+ <categorycontent>0</categorycontent>
118
+ <productcontent>0</productcontent>
119
+ <font></font>
120
+ </sendbutton>
121
+ <comments>
122
+ <productcontent>0</productcontent>
123
+ <num_posts>2</num_posts>
124
+ <width>600</width>
125
+ </comments>
126
+ <activity>
127
+ <lefthomecolumn>0</lefthomecolumn>
128
+ <righthomecolumn>0</righthomecolumn>
129
+ <leftcategorycolumn>0</leftcategorycolumn>
130
+ <rightcategorycolumn>0</rightcategorycolumn>
131
+ <leftproductcolumn>0</leftproductcolumn>
132
+ <rightproductcolumn>1</rightproductcolumn>
133
+ <width>190</width>
134
+ <height>200</height>
135
+ <header>1</header>
136
+ <font></font>
137
+ <border_color>#C4C1BC</border_color>
138
+ <recommendations>1</recommendations>
139
+ </activity>
140
+ <recommendations>
141
+ <lefthomecolumn>0</lefthomecolumn>
142
+ <righthomecolumn>0</righthomecolumn>
143
+ <leftcategorycolumn>0</leftcategorycolumn>
144
+ <rightcategorycolumn>0</rightcategorycolumn>
145
+ <leftproductcolumn>0</leftproductcolumn>
146
+ <rightproductcolumn>1</rightproductcolumn>
147
+ <width>190</width>
148
+ <height>200</height>
149
+ <header>1</header>
150
+ <font></font>
151
+ <border_color>#C4C1BC</border_color>
152
+ </recommendations>
153
+ <likebox>
154
+ <lefthomecolumn>0</lefthomecolumn>
155
+ <righthomecolumn>0</righthomecolumn>
156
+ <leftcategorycolumn>0</leftcategorycolumn>
157
+ <rightcategorycolumn>0</rightcategorycolumn>
158
+ <leftproductcolumn>0</leftproductcolumn>
159
+ <rightproductcolumn>1</rightproductcolumn>
160
+ <width>190</width>
161
+ <show_faces>1</show_faces>
162
+ <border_color>#C4C1BC</border_color>
163
+ <stream>1</stream>
164
+ <header>1</header>
165
+ </likebox>
166
+ <facepile>
167
+ <homecontent>0</homecontent>
168
+ <categorycontent>0</categorycontent>
169
+ <productcontent>0</productcontent>
170
+ <lefthomecolumn>0</lefthomecolumn>
171
+ <righthomecolumn>0</righthomecolumn>
172
+ <leftcategorycolumn>0</leftcategorycolumn>
173
+ <rightcategorycolumn>0</rightcategorycolumn>
174
+ <leftproductcolumn>0</leftproductcolumn>
175
+ <rightproductcolumn>1</rightproductcolumn>
176
+ <size>large</size>
177
+ <width>190</width>
178
+ <max_rows>10</max_rows>
179
+ </facepile>
180
+ <livestream>
181
+ <lefthomecolumn>0</lefthomecolumn>
182
+ <righthomecolumn>0</righthomecolumn>
183
+ <leftcategorycolumn>0</leftcategorycolumn>
184
+ <rightcategorycolumn>0</rightcategorycolumn>
185
+ <leftproductcolumn>0</leftproductcolumn>
186
+ <rightproductcolumn>1</rightproductcolumn>
187
+ <width>190</width>
188
+ <height>300</height>
189
+ <xid></xid>
190
+ <always_post_to_friends>0</always_post_to_friends>
191
+ </livestream>
192
+
193
+
194
+ </facebook>
195
+ </default>
196
+ </config>
app/code/community/Magazento/Facebook/etc/system.xml ADDED
@@ -0,0 +1,789 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <magazento translate="label">
5
+ <label>Magazento.com</label>
6
+ <sort_order>250</sort_order>
7
+ </magazento>
8
+ </tabs>
9
+ <sections>
10
+ <facebook translate="label" module="facebook">
11
+ <label>All-In-One Facebook Widgets</label>
12
+ <tab>magazento</tab>
13
+ <frontend_type>text</frontend_type>
14
+ <sort_order>100</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
+ <general translate="label">
20
+ <label>General</label>
21
+ <sort_order>100</sort_order>
22
+ <show_in_default>1</show_in_default>
23
+ <show_in_website>1</show_in_website>
24
+ <show_in_store>1</show_in_store>
25
+ <fields>
26
+ <enabled translate="label">
27
+ <label>Enabled</label>
28
+ <frontend_type>select</frontend_type>
29
+ <source_model>adminhtml/system_config_source_yesno</source_model>
30
+ <sort_order>10</sort_order>
31
+ <show_in_default>1</show_in_default>
32
+ <show_in_website>1</show_in_website>
33
+ <show_in_store>1</show_in_store>
34
+ </enabled>
35
+ <appid translate="label">
36
+ <label>Application id</label>
37
+ <comment><![CDATA[ <a href="http://www.facebook.com/developers/createapp.php">Create Facebook application</a> ]]>
38
+ </comment>
39
+ <frontend_type>text</frontend_type>
40
+ <sort_order>20</sort_order>
41
+ <show_in_default>1</show_in_default>
42
+ <show_in_website>1</show_in_website>
43
+ <show_in_store>1</show_in_store>
44
+ </appid>
45
+ <appkey translate="label">
46
+ <label>Application key</label>
47
+ <frontend_type>text</frontend_type>
48
+ <sort_order>30</sort_order>
49
+ <show_in_default>1</show_in_default>
50
+ <show_in_website>1</show_in_website>
51
+ <show_in_store>1</show_in_store>
52
+ </appkey>
53
+ </fields>
54
+ </general>
55
+ <likebutton translate="label">
56
+ <label>Like and Send buttons</label>
57
+ <sort_order>120</sort_order>
58
+ <show_in_default>1</show_in_default>
59
+ <show_in_website>1</show_in_website>
60
+ <show_in_store>1</show_in_store>
61
+ <fields>
62
+ <homecontent translate="label">
63
+ <label>Show on Home page</label>
64
+ <frontend_type>select</frontend_type>
65
+ <source_model>adminhtml/system_config_source_yesno</source_model>
66
+ <sort_order>10</sort_order>
67
+ <show_in_default>1</show_in_default>
68
+ <show_in_website>1</show_in_website>
69
+ <show_in_store>1</show_in_store>
70
+ </homecontent>
71
+ <categorycontent translate="label">
72
+ <label>Show in Category view</label>
73
+ <frontend_type>select</frontend_type>
74
+ <source_model>adminhtml/system_config_source_yesno</source_model>
75
+ <sort_order>20</sort_order>
76
+ <show_in_default>1</show_in_default>
77
+ <show_in_website>1</show_in_website>
78
+ <show_in_store>1</show_in_store>
79
+ </categorycontent>
80
+ <productcontent translate="label">
81
+ <label>Show in Product view</label>
82
+ <frontend_type>select</frontend_type>
83
+ <source_model>adminhtml/system_config_source_yesno</source_model>
84
+ <sort_order>30</sort_order>
85
+ <show_in_default>1</show_in_default>
86
+ <show_in_website>1</show_in_website>
87
+ <show_in_store>1</show_in_store>
88
+ </productcontent>
89
+ <layout translate="label">
90
+ <label>Layout style</label>
91
+ <frontend_type>select</frontend_type>
92
+ <source_model>Magazento_Facebook_Adminhtml_Model_System_Config_Source_Layout</source_model>
93
+ <sort_order>40</sort_order>
94
+ <show_in_default>1</show_in_default>
95
+ <show_in_website>1</show_in_website>
96
+ <show_in_store>1</show_in_store>
97
+ </layout>
98
+ <showfaces translate="lable">
99
+ <label>Show faces</label>
100
+ <frontend_type>select</frontend_type>
101
+ <source_model>adminhtml/system_config_source_yesno</source_model>
102
+ <sort_order>50</sort_order>
103
+ <show_in_default>1</show_in_default>
104
+ <show_in_website>1</show_in_website>
105
+ <show_in_store>1</show_in_store>
106
+ </showfaces>
107
+ <width translate="lable">
108
+ <label>Width</label>
109
+ <frontend_type>text</frontend_type>
110
+ <sort_order>60</sort_order>
111
+ <show_in_default>1</show_in_default>
112
+ <show_in_website>1</show_in_website>
113
+ <show_in_store>1</show_in_store>
114
+ </width>
115
+ <verb translate="label">
116
+ <label>Verb to display</label>
117
+ <frontend_type>select</frontend_type>
118
+ <source_model>Magazento_Facebook_Adminhtml_Model_System_Config_Source_Verb</source_model>
119
+ <sort_order>70</sort_order>
120
+ <show_in_default>1</show_in_default>
121
+ <show_in_website>1</show_in_website>
122
+ <show_in_store>1</show_in_store>
123
+ </verb>
124
+ <font translate="label">
125
+ <label>Font</label>
126
+ <frontend_type>select</frontend_type>
127
+ <source_model>Magazento_Facebook_Adminhtml_Model_System_Config_Source_Font</source_model>
128
+ <sort_order>80</sort_order>
129
+ <show_in_default>1</show_in_default>
130
+ <show_in_website>1</show_in_website>
131
+ <show_in_store>1</show_in_store>
132
+ </font>
133
+ <color translate="label">
134
+ <label>Color scheme</label>
135
+ <frontend_type>select</frontend_type>
136
+ <source_model>Magazento_Facebook_Adminhtml_Model_System_Config_Source_Color</source_model>
137
+ <sort_order>90</sort_order>
138
+ <show_in_default>1</show_in_default>
139
+ <show_in_website>1</show_in_website>
140
+ <show_in_store>1</show_in_store>
141
+ </color>
142
+ </fields>
143
+ </likebutton>
144
+ <graphlikebutton translate="label">
145
+ <label>Open graph Like button</label>
146
+ <sort_order>130</sort_order>
147
+ <show_in_default>1</show_in_default>
148
+ <show_in_website>1</show_in_website>
149
+ <show_in_store>1</show_in_store>
150
+ <fields>
151
+ <homecontent translate="label">
152
+ <label>Show on Home page</label>
153
+ <frontend_type>select</frontend_type>
154
+ <source_model>adminhtml/system_config_source_yesno</source_model>
155
+ <sort_order>10</sort_order>
156
+ <show_in_default>1</show_in_default>
157
+ <show_in_website>1</show_in_website>
158
+ <show_in_store>1</show_in_store>
159
+ </homecontent>
160
+ <categorycontent translate="label">
161
+ <label>Show in Category view</label>
162
+ <frontend_type>select</frontend_type>
163
+ <source_model>adminhtml/system_config_source_yesno</source_model>
164
+ <sort_order>20</sort_order>
165
+ <show_in_default>1</show_in_default>
166
+ <show_in_website>1</show_in_website>
167
+ <show_in_store>1</show_in_store>
168
+ </categorycontent>
169
+ <productcontent translate="label">
170
+ <label>Show in Product view</label>
171
+ <frontend_type>select</frontend_type>
172
+ <source_model>adminhtml/system_config_source_yesno</source_model>
173
+ <sort_order>30</sort_order>
174
+ <show_in_default>1</show_in_default>
175
+ <show_in_website>1</show_in_website>
176
+ <show_in_store>1</show_in_store>
177
+ </productcontent>
178
+ <type translate="label">
179
+ <label>Type</label>
180
+ <frontend_type>select</frontend_type>
181
+ <source_model>Magazento_Facebook_Adminhtml_Model_System_Config_Source_Type</source_model>
182
+ <sort_order>40</sort_order>
183
+ <show_in_default>1</show_in_default>
184
+ <show_in_website>1</show_in_website>
185
+ <show_in_store>1</show_in_store>
186
+ </type>
187
+ </fields>
188
+ </graphlikebutton>
189
+ <sendbutton translate="label">
190
+ <label>Send button</label>
191
+ <sort_order>140</sort_order>
192
+ <show_in_default>1</show_in_default>
193
+ <show_in_website>1</show_in_website>
194
+ <show_in_store>1</show_in_store>
195
+ <fields>
196
+ <homecontent translate="label">
197
+ <label>Show on Home page</label>
198
+ <frontend_type>select</frontend_type>
199
+ <source_model>adminhtml/system_config_source_yesno</source_model>
200
+ <sort_order>10</sort_order>
201
+ <show_in_default>1</show_in_default>
202
+ <show_in_website>1</show_in_website>
203
+ <show_in_store>1</show_in_store>
204
+ </homecontent>
205
+ <categorycontent translate="label">
206
+ <label>Show in Category view</label>
207
+ <frontend_type>select</frontend_type>
208
+ <source_model>adminhtml/system_config_source_yesno</source_model>
209
+ <sort_order>20</sort_order>
210
+ <show_in_default>1</show_in_default>
211
+ <show_in_website>1</show_in_website>
212
+ <show_in_store>1</show_in_store>
213
+ </categorycontent>
214
+ <productcontent translate="label">
215
+ <label>Show in Product view</label>
216
+ <frontend_type>select</frontend_type>
217
+ <source_model>adminhtml/system_config_source_yesno</source_model>
218
+ <sort_order>30</sort_order>
219
+ <show_in_default>1</show_in_default>
220
+ <show_in_website>1</show_in_website>
221
+ <show_in_store>1</show_in_store>
222
+ </productcontent>
223
+ <font translate="label">
224
+ <label>Font</label>
225
+ <frontend_type>select</frontend_type>
226
+ <source_model>Magazento_Facebook_Adminhtml_Model_System_Config_Source_Font</source_model>
227
+ <sort_order>40</sort_order>
228
+ <show_in_default>1</show_in_default>
229
+ <show_in_website>1</show_in_website>
230
+ <show_in_store>1</show_in_store>
231
+ </font>
232
+ </fields>
233
+ </sendbutton>
234
+ <comments translate="label">
235
+ <label>Comments</label>
236
+ <sort_order>140</sort_order>
237
+ <show_in_default>1</show_in_default>
238
+ <show_in_website>1</show_in_website>
239
+ <show_in_store>1</show_in_store>
240
+ <fields>
241
+ <productcontent translate="label">
242
+ <label>Show in Product view</label>
243
+ <frontend_type>select</frontend_type>
244
+ <source_model>adminhtml/system_config_source_yesno</source_model>
245
+ <sort_order>10</sort_order>
246
+ <show_in_default>1</show_in_default>
247
+ <show_in_website>1</show_in_website>
248
+ <show_in_store>1</show_in_store>
249
+ </productcontent>
250
+ <num_posts translate="lable">
251
+ <label>Number posts to display</label>
252
+ <frontend_type>text</frontend_type>
253
+ <sort_order>20</sort_order>
254
+ <show_in_default>1</show_in_default>
255
+ <show_in_website>1</show_in_website>
256
+ <show_in_store>1</show_in_store>
257
+ </num_posts>
258
+ <width translate="lable">
259
+ <label>Width</label>
260
+ <frontend_type>text</frontend_type>
261
+ <sort_order>30</sort_order>
262
+ <show_in_default>1</show_in_default>
263
+ <show_in_website>1</show_in_website>
264
+ <show_in_store>1</show_in_store>
265
+ </width>
266
+ </fields>
267
+ </comments>
268
+ <activity translate="label">
269
+ <label>Activity Feed</label>
270
+ <sort_order>150</sort_order>
271
+ <show_in_default>1</show_in_default>
272
+ <show_in_website>1</show_in_website>
273
+ <show_in_store>1</show_in_store>
274
+ <fields>
275
+ <lefthomecolumn translate="label">
276
+ <label>Left homepage column</label>
277
+ <frontend_type>select</frontend_type>
278
+ <source_model>adminhtml/system_config_source_yesno</source_model>
279
+ <sort_order>10</sort_order>
280
+ <show_in_default>1</show_in_default>
281
+ <show_in_website>1</show_in_website>
282
+ <show_in_store>1</show_in_store>
283
+ </lefthomecolumn>
284
+ <righthomecolumn translate="label">
285
+ <label>Right homepage column</label>
286
+ <frontend_type>select</frontend_type>
287
+ <source_model>adminhtml/system_config_source_yesno</source_model>
288
+ <sort_order>20</sort_order>
289
+ <show_in_default>1</show_in_default>
290
+ <show_in_website>1</show_in_website>
291
+ <show_in_store>1</show_in_store>
292
+ </righthomecolumn>
293
+ <leftcategorycolumn translate="label">
294
+ <label>Left category column</label>
295
+ <frontend_type>select</frontend_type>
296
+ <source_model>adminhtml/system_config_source_yesno</source_model>
297
+ <sort_order>30</sort_order>
298
+ <show_in_default>1</show_in_default>
299
+ <show_in_website>1</show_in_website>
300
+ <show_in_store>1</show_in_store>
301
+ </leftcategorycolumn>
302
+ <rightcategorycolumn translate="label">
303
+ <label>Right category column</label>
304
+ <frontend_type>select</frontend_type>
305
+ <source_model>adminhtml/system_config_source_yesno</source_model>
306
+ <sort_order>40</sort_order>
307
+ <show_in_default>1</show_in_default>
308
+ <show_in_website>1</show_in_website>
309
+ <show_in_store>1</show_in_store>
310
+ </rightcategorycolumn>
311
+ <leftproductcolumn translate="label">
312
+ <label>Left product column</label>
313
+ <frontend_type>select</frontend_type>
314
+ <source_model>adminhtml/system_config_source_yesno</source_model>
315
+ <sort_order>50</sort_order>
316
+ <show_in_default>1</show_in_default>
317
+ <show_in_website>1</show_in_website>
318
+ <show_in_store>1</show_in_store>
319
+ </leftproductcolumn>
320
+ <rightproductcolumn translate="label">
321
+ <label>Right product column</label>
322
+ <frontend_type>select</frontend_type>
323
+ <source_model>adminhtml/system_config_source_yesno</source_model>
324
+ <sort_order>60</sort_order>
325
+ <show_in_default>1</show_in_default>
326
+ <show_in_website>1</show_in_website>
327
+ <show_in_store>1</show_in_store>
328
+ </rightproductcolumn>
329
+ <width translate="lable">
330
+ <label>Width</label>
331
+ <frontend_type>text</frontend_type>
332
+ <sort_order>70</sort_order>
333
+ <show_in_default>1</show_in_default>
334
+ <show_in_website>1</show_in_website>
335
+ <show_in_store>1</show_in_store>
336
+ </width>
337
+ <height translate="lable">
338
+ <label>Height</label>
339
+ <frontend_type>text</frontend_type>
340
+ <sort_order>80</sort_order>
341
+ <show_in_default>1</show_in_default>
342
+ <show_in_website>1</show_in_website>
343
+ <show_in_store>1</show_in_store>
344
+ </height>
345
+ <header translate="lable">
346
+ <label>Header</label>
347
+ <frontend_type>select</frontend_type>
348
+ <source_model>adminhtml/system_config_source_yesno</source_model>
349
+ <sort_order>90</sort_order>
350
+ <show_in_default>1</show_in_default>
351
+ <show_in_website>1</show_in_website>
352
+ <show_in_store>1</show_in_store>
353
+ </header>
354
+ <font translate="label">
355
+ <label>Font</label>
356
+ <frontend_type>select</frontend_type>
357
+ <source_model>Magazento_Facebook_Adminhtml_Model_System_Config_Source_Font</source_model>
358
+ <sort_order>100</sort_order>
359
+ <show_in_default>1</show_in_default>
360
+ <show_in_website>1</show_in_website>
361
+ <show_in_store>1</show_in_store>
362
+ </font>
363
+ <border_color translate="lable">
364
+ <label>Border color</label>
365
+ <frontend_type>text</frontend_type>
366
+ <sort_order>110</sort_order>
367
+ <show_in_default>1</show_in_default>
368
+ <show_in_website>1</show_in_website>
369
+ <show_in_store>1</show_in_store>
370
+ </border_color>
371
+ <recommendations translate="lable">
372
+ <label>Recommendations</label>
373
+ <frontend_type>select</frontend_type>
374
+ <source_model>adminhtml/system_config_source_yesno</source_model>
375
+ <sort_order>120</sort_order>
376
+ <show_in_default>1</show_in_default>
377
+ <show_in_website>1</show_in_website>
378
+ <show_in_store>1</show_in_store>
379
+ </recommendations>
380
+ </fields>
381
+ </activity>
382
+ <recommendations translate="label">
383
+ <label>Recommendations</label>
384
+ <sort_order>160</sort_order>
385
+ <show_in_default>1</show_in_default>
386
+ <show_in_website>1</show_in_website>
387
+ <show_in_store>1</show_in_store>
388
+ <fields>
389
+ <lefthomecolumn translate="label">
390
+ <label>Left homepage column</label>
391
+ <frontend_type>select</frontend_type>
392
+ <source_model>adminhtml/system_config_source_yesno</source_model>
393
+ <sort_order>10</sort_order>
394
+ <show_in_default>1</show_in_default>
395
+ <show_in_website>1</show_in_website>
396
+ <show_in_store>1</show_in_store>
397
+ </lefthomecolumn>
398
+ <righthomecolumn translate="label">
399
+ <label>Right homepage column</label>
400
+ <frontend_type>select</frontend_type>
401
+ <source_model>adminhtml/system_config_source_yesno</source_model>
402
+ <sort_order>20</sort_order>
403
+ <show_in_default>1</show_in_default>
404
+ <show_in_website>1</show_in_website>
405
+ <show_in_store>1</show_in_store>
406
+ </righthomecolumn>
407
+ <leftcategorycolumn translate="label">
408
+ <label>Left category column</label>
409
+ <frontend_type>select</frontend_type>
410
+ <source_model>adminhtml/system_config_source_yesno</source_model>
411
+ <sort_order>30</sort_order>
412
+ <show_in_default>1</show_in_default>
413
+ <show_in_website>1</show_in_website>
414
+ <show_in_store>1</show_in_store>
415
+ </leftcategorycolumn>
416
+ <rightcategorycolumn translate="label">
417
+ <label>Right category column</label>
418
+ <frontend_type>select</frontend_type>
419
+ <source_model>adminhtml/system_config_source_yesno</source_model>
420
+ <sort_order>40</sort_order>
421
+ <show_in_default>1</show_in_default>
422
+ <show_in_website>1</show_in_website>
423
+ <show_in_store>1</show_in_store>
424
+ </rightcategorycolumn>
425
+ <leftproductcolumn translate="label">
426
+ <label>Left product column</label>
427
+ <frontend_type>select</frontend_type>
428
+ <source_model>adminhtml/system_config_source_yesno</source_model>
429
+ <sort_order>50</sort_order>
430
+ <show_in_default>1</show_in_default>
431
+ <show_in_website>1</show_in_website>
432
+ <show_in_store>1</show_in_store>
433
+ </leftproductcolumn>
434
+ <rightproductcolumn translate="label">
435
+ <label>Right product column</label>
436
+ <frontend_type>select</frontend_type>
437
+ <source_model>adminhtml/system_config_source_yesno</source_model>
438
+ <sort_order>60</sort_order>
439
+ <show_in_default>1</show_in_default>
440
+ <show_in_website>1</show_in_website>
441
+ <show_in_store>1</show_in_store>
442
+ </rightproductcolumn>
443
+ <width translate="lable">
444
+ <label>Width</label>
445
+ <frontend_type>text</frontend_type>
446
+ <sort_order>70</sort_order>
447
+ <show_in_default>1</show_in_default>
448
+ <show_in_website>1</show_in_website>
449
+ <show_in_store>1</show_in_store>
450
+ </width>
451
+ <height translate="lable">
452
+ <label>Height</label>
453
+ <frontend_type>text</frontend_type>
454
+ <sort_order>80</sort_order>
455
+ <show_in_default>1</show_in_default>
456
+ <show_in_website>1</show_in_website>
457
+ <show_in_store>1</show_in_store>
458
+ </height>
459
+ <header translate="lable">
460
+ <label>Header</label>
461
+ <frontend_type>select</frontend_type>
462
+ <source_model>adminhtml/system_config_source_yesno</source_model>
463
+ <sort_order>90</sort_order>
464
+ <show_in_default>1</show_in_default>
465
+ <show_in_website>1</show_in_website>
466
+ <show_in_store>1</show_in_store>
467
+ </header>
468
+ <font translate="label">
469
+ <label>Font</label>
470
+ <frontend_type>select</frontend_type>
471
+ <source_model>Magazento_Facebook_Adminhtml_Model_System_Config_Source_Font</source_model>
472
+ <sort_order>100</sort_order>
473
+ <show_in_default>1</show_in_default>
474
+ <show_in_website>1</show_in_website>
475
+ <show_in_store>1</show_in_store>
476
+ </font>
477
+ <border_color translate="lable">
478
+ <label>Border color</label>
479
+ <frontend_type>text</frontend_type>
480
+ <sort_order>110</sort_order>
481
+ <show_in_default>1</show_in_default>
482
+ <show_in_website>1</show_in_website>
483
+ <show_in_store>1</show_in_store>
484
+ </border_color>
485
+ </fields>
486
+ </recommendations>
487
+ <likebox translate="label">
488
+ <label>Like Box</label>
489
+ <sort_order>170</sort_order>
490
+ <show_in_default>1</show_in_default>
491
+ <show_in_website>1</show_in_website>
492
+ <show_in_store>1</show_in_store>
493
+ <fields>
494
+ <lefthomecolumn translate="label">
495
+ <label>Left homepage column</label>
496
+ <frontend_type>select</frontend_type>
497
+ <source_model>adminhtml/system_config_source_yesno</source_model>
498
+ <sort_order>10</sort_order>
499
+ <show_in_default>1</show_in_default>
500
+ <show_in_website>1</show_in_website>
501
+ <show_in_store>1</show_in_store>
502
+ </lefthomecolumn>
503
+ <righthomecolumn translate="label">
504
+ <label>Right homepage column</label>
505
+ <frontend_type>select</frontend_type>
506
+ <source_model>adminhtml/system_config_source_yesno</source_model>
507
+ <sort_order>20</sort_order>
508
+ <show_in_default>1</show_in_default>
509
+ <show_in_website>1</show_in_website>
510
+ <show_in_store>1</show_in_store>
511
+ </righthomecolumn>
512
+ <leftcategorycolumn translate="label">
513
+ <label>Left category column</label>
514
+ <frontend_type>select</frontend_type>
515
+ <source_model>adminhtml/system_config_source_yesno</source_model>
516
+ <sort_order>30</sort_order>
517
+ <show_in_default>1</show_in_default>
518
+ <show_in_website>1</show_in_website>
519
+ <show_in_store>1</show_in_store>
520
+ </leftcategorycolumn>
521
+ <rightcategorycolumn translate="label">
522
+ <label>Right category column</label>
523
+ <frontend_type>select</frontend_type>
524
+ <source_model>adminhtml/system_config_source_yesno</source_model>
525
+ <sort_order>40</sort_order>
526
+ <show_in_default>1</show_in_default>
527
+ <show_in_website>1</show_in_website>
528
+ <show_in_store>1</show_in_store>
529
+ </rightcategorycolumn>
530
+ <leftproductcolumn translate="label">
531
+ <label>Left product column</label>
532
+ <frontend_type>select</frontend_type>
533
+ <source_model>adminhtml/system_config_source_yesno</source_model>
534
+ <sort_order>50</sort_order>
535
+ <show_in_default>1</show_in_default>
536
+ <show_in_website>1</show_in_website>
537
+ <show_in_store>1</show_in_store>
538
+ </leftproductcolumn>
539
+ <rightproductcolumn translate="label">
540
+ <label>Right product column</label>
541
+ <frontend_type>select</frontend_type>
542
+ <source_model>adminhtml/system_config_source_yesno</source_model>
543
+ <sort_order>60</sort_order>
544
+ <show_in_default>1</show_in_default>
545
+ <show_in_website>1</show_in_website>
546
+ <show_in_store>1</show_in_store>
547
+ </rightproductcolumn>
548
+ <width translate="lable">
549
+ <label>Width</label>
550
+ <frontend_type>text</frontend_type>
551
+ <sort_order>70</sort_order>
552
+ <show_in_default>1</show_in_default>
553
+ <show_in_website>1</show_in_website>
554
+ <show_in_store>1</show_in_store>
555
+ </width>
556
+ <show_faces translate="lable">
557
+ <label>Show faces</label>
558
+ <frontend_type>select</frontend_type>
559
+ <source_model>adminhtml/system_config_source_yesno</source_model>
560
+ <sort_order>80</sort_order>
561
+ <show_in_default>1</show_in_default>
562
+ <show_in_website>1</show_in_website>
563
+ <show_in_store>1</show_in_store>
564
+ </show_faces>
565
+ <border_color translate="lable">
566
+ <label>Border color</label>
567
+ <frontend_type>text</frontend_type>
568
+ <sort_order>90</sort_order>
569
+ <show_in_default>1</show_in_default>
570
+ <show_in_website>1</show_in_website>
571
+ <show_in_store>1</show_in_store>
572
+ </border_color>
573
+ <stream translate="lable">
574
+ <label>Stream</label>
575
+ <frontend_type>select</frontend_type>
576
+ <source_model>adminhtml/system_config_source_yesno</source_model>
577
+ <sort_order>100</sort_order>
578
+ <show_in_default>1</show_in_default>
579
+ <show_in_website>1</show_in_website>
580
+ <show_in_store>1</show_in_store>
581
+ </stream>
582
+ <header translate="lable">
583
+ <label>Header</label>
584
+ <frontend_type>select</frontend_type>
585
+ <source_model>adminhtml/system_config_source_yesno</source_model>
586
+ <sort_order>110</sort_order>
587
+ <show_in_default>1</show_in_default>
588
+ <show_in_website>1</show_in_website>
589
+ <show_in_store>1</show_in_store>
590
+ </header>
591
+ </fields>
592
+ </likebox>
593
+ <facepile translate="label">
594
+ <label>Facepile</label>
595
+ <sort_order>170</sort_order>
596
+ <show_in_default>1</show_in_default>
597
+ <show_in_website>1</show_in_website>
598
+ <show_in_store>1</show_in_store>
599
+ <fields>
600
+ <lefthomecolumn translate="label">
601
+ <label>Left homepage column</label>
602
+ <frontend_type>select</frontend_type>
603
+ <source_model>adminhtml/system_config_source_yesno</source_model>
604
+ <sort_order>10</sort_order>
605
+ <show_in_default>1</show_in_default>
606
+ <show_in_website>1</show_in_website>
607
+ <show_in_store>1</show_in_store>
608
+ </lefthomecolumn>
609
+ <righthomecolumn translate="label">
610
+ <label>Right homepage column</label>
611
+ <frontend_type>select</frontend_type>
612
+ <source_model>adminhtml/system_config_source_yesno</source_model>
613
+ <sort_order>20</sort_order>
614
+ <show_in_default>1</show_in_default>
615
+ <show_in_website>1</show_in_website>
616
+ <show_in_store>1</show_in_store>
617
+ </righthomecolumn>
618
+ <leftcategorycolumn translate="label">
619
+ <label>Left category column</label>
620
+ <frontend_type>select</frontend_type>
621
+ <source_model>adminhtml/system_config_source_yesno</source_model>
622
+ <sort_order>30</sort_order>
623
+ <show_in_default>1</show_in_default>
624
+ <show_in_website>1</show_in_website>
625
+ <show_in_store>1</show_in_store>
626
+ </leftcategorycolumn>
627
+ <rightcategorycolumn translate="label">
628
+ <label>Right category column</label>
629
+ <frontend_type>select</frontend_type>
630
+ <source_model>adminhtml/system_config_source_yesno</source_model>
631
+ <sort_order>40</sort_order>
632
+ <show_in_default>1</show_in_default>
633
+ <show_in_website>1</show_in_website>
634
+ <show_in_store>1</show_in_store>
635
+ </rightcategorycolumn>
636
+ <leftproductcolumn translate="label">
637
+ <label>Left product column</label>
638
+ <frontend_type>select</frontend_type>
639
+ <source_model>adminhtml/system_config_source_yesno</source_model>
640
+ <sort_order>50</sort_order>
641
+ <show_in_default>1</show_in_default>
642
+ <show_in_website>1</show_in_website>
643
+ <show_in_store>1</show_in_store>
644
+ </leftproductcolumn>
645
+ <rightproductcolumn translate="label">
646
+ <label>Right product column</label>
647
+ <frontend_type>select</frontend_type>
648
+ <source_model>adminhtml/system_config_source_yesno</source_model>
649
+ <sort_order>60</sort_order>
650
+ <show_in_default>1</show_in_default>
651
+ <show_in_website>1</show_in_website>
652
+ <show_in_store>1</show_in_store>
653
+ </rightproductcolumn>
654
+ <size translate="lable">
655
+ <label>Size</label>
656
+ <frontend_type>select</frontend_type>
657
+ <source_model>Magazento_Facebook_Adminhtml_Model_System_Config_Source_Size</source_model>
658
+ <sort_order>70</sort_order>
659
+ <show_in_default>1</show_in_default>
660
+ <show_in_website>1</show_in_website>
661
+ <show_in_store>1</show_in_store>
662
+ </size>
663
+ <width translate="lable">
664
+ <label>Width</label>
665
+ <frontend_type>text</frontend_type>
666
+ <sort_order>80</sort_order>
667
+ <show_in_default>1</show_in_default>
668
+ <show_in_website>1</show_in_website>
669
+ <show_in_store>1</show_in_store>
670
+ </width>
671
+ <max_rows translate="label">
672
+ <label>Max rows</label>
673
+ <frontend_type>text</frontend_type>
674
+ <sort_order>90</sort_order>
675
+ <show_in_default>1</show_in_default>
676
+ <show_in_website>1</show_in_website>
677
+ <show_in_store>1</show_in_store>
678
+ </max_rows>
679
+ </fields>
680
+ </facepile>
681
+ <livestream translate="label">
682
+ <label>Live Stream</label>
683
+ <sort_order>180</sort_order>
684
+ <show_in_default>1</show_in_default>
685
+ <show_in_website>1</show_in_website>
686
+ <show_in_store>1</show_in_store>
687
+ <fields>
688
+ <lefthomecolumn translate="label">
689
+ <label>Left homepage column</label>
690
+ <frontend_type>select</frontend_type>
691
+ <source_model>adminhtml/system_config_source_yesno</source_model>
692
+ <sort_order>10</sort_order>
693
+ <show_in_default>1</show_in_default>
694
+ <show_in_website>1</show_in_website>
695
+ <show_in_store>1</show_in_store>
696
+ </lefthomecolumn>
697
+ <righthomecolumn translate="label">
698
+ <label>Right homepage column</label>
699
+ <frontend_type>select</frontend_type>
700
+ <source_model>adminhtml/system_config_source_yesno</source_model>
701
+ <sort_order>20</sort_order>
702
+ <show_in_default>1</show_in_default>
703
+ <show_in_website>1</show_in_website>
704
+ <show_in_store>1</show_in_store>
705
+ </righthomecolumn>
706
+ <leftcategorycolumn translate="label">
707
+ <label>Left category column</label>
708
+ <frontend_type>select</frontend_type>
709
+ <source_model>adminhtml/system_config_source_yesno</source_model>
710
+ <sort_order>30</sort_order>
711
+ <show_in_default>1</show_in_default>
712
+ <show_in_website>1</show_in_website>
713
+ <show_in_store>1</show_in_store>
714
+ </leftcategorycolumn>
715
+ <rightcategorycolumn translate="label">
716
+ <label>Right category column</label>
717
+ <frontend_type>select</frontend_type>
718
+ <source_model>adminhtml/system_config_source_yesno</source_model>
719
+ <sort_order>40</sort_order>
720
+ <show_in_default>1</show_in_default>
721
+ <show_in_website>1</show_in_website>
722
+ <show_in_store>1</show_in_store>
723
+ </rightcategorycolumn>
724
+ <leftproductcolumn translate="label">
725
+ <label>Left product column</label>
726
+ <frontend_type>select</frontend_type>
727
+ <source_model>adminhtml/system_config_source_yesno</source_model>
728
+ <sort_order>50</sort_order>
729
+ <show_in_default>1</show_in_default>
730
+ <show_in_website>1</show_in_website>
731
+ <show_in_store>1</show_in_store>
732
+ </leftproductcolumn>
733
+ <rightproductcolumn translate="label">
734
+ <label>Right product column</label>
735
+ <frontend_type>select</frontend_type>
736
+ <source_model>adminhtml/system_config_source_yesno</source_model>
737
+ <sort_order>60</sort_order>
738
+ <show_in_default>1</show_in_default>
739
+ <show_in_website>1</show_in_website>
740
+ <show_in_store>1</show_in_store>
741
+ </rightproductcolumn>
742
+ <width translate="lable">
743
+ <label>Width</label>
744
+ <frontend_type>text</frontend_type>
745
+ <sort_order>70</sort_order>
746
+ <show_in_default>1</show_in_default>
747
+ <show_in_website>1</show_in_website>
748
+ <show_in_store>1</show_in_store>
749
+ </width>
750
+ <height translate="lable">
751
+ <label>Height</label>
752
+ <frontend_type>text</frontend_type>
753
+ <sort_order>80</sort_order>
754
+ <show_in_default>1</show_in_default>
755
+ <show_in_website>1</show_in_website>
756
+ <show_in_store>1</show_in_store>
757
+ </height>
758
+ <xid translate="lable">
759
+ <label>Xid</label>
760
+ <frontend_type>text</frontend_type>
761
+ <sort_order>90</sort_order>
762
+ <show_in_default>1</show_in_default>
763
+ <show_in_website>1</show_in_website>
764
+ <show_in_store>1</show_in_store>
765
+ </xid>
766
+ <always_post_to_friends translate="lable">
767
+ <label>Always post to friends</label>
768
+ <frontend_type>select</frontend_type>
769
+ <source_model>adminhtml/system_config_source_yesno</source_model>
770
+ <sort_order>100</sort_order>
771
+ <show_in_default>1</show_in_default>
772
+ <show_in_website>1</show_in_website>
773
+ <show_in_store>1</show_in_store>
774
+ </always_post_to_friends>
775
+ </fields>
776
+ </livestream>
777
+ <developer>
778
+ <frontend_model>facebook/developer</frontend_model>
779
+ <sort_order>999</sort_order>
780
+ <show_in_default>1</show_in_default>
781
+ <show_in_website>1</show_in_website>
782
+ <show_in_store>1</show_in_store>
783
+ </developer>
784
+ </groups>
785
+ </facebook>
786
+ </sections>
787
+ </config>
788
+
789
+
app/design/frontend/default/default/layout/magazento_facebook.xml ADDED
@@ -0,0 +1,375 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <layout version="0.1.0">
3
+ <default>
4
+ <reference name="head">
5
+ <action method="addCss">
6
+ <stylesheet>magazento/facebook/fb.css</stylesheet>
7
+ </action>
8
+ </reference>
9
+ </default>
10
+
11
+ <!--like button-->
12
+ <cms_index_index>
13
+ <reference name="content">
14
+ <block type="core/template" name="facebook_like" before="-" >
15
+ <action method="setTemplate" ifconfig="facebook/likebutton/homecontent">
16
+ <template>magazento/facebook/like.phtml</template>
17
+ </action>
18
+ </block>
19
+ </reference>
20
+ </cms_index_index>
21
+
22
+ <catalog_category_default />
23
+ <catalog_category_layered>
24
+ <reference name="content">
25
+ <block type="core/template" name="facebook_like" before="-" >
26
+ <action method="setTemplate" ifconfig="facebook/likebutton/categorycontent">
27
+ <template>magazento/facebook/like.phtml</template>
28
+ </action>
29
+ </block>
30
+ </reference>
31
+ </catalog_category_layered>
32
+
33
+ <catalog_product_view>
34
+ <reference name="content">
35
+ <block type="core/template" name="facebook_like" before="-" >
36
+ <action method="setTemplate" ifconfig="facebook/likebutton/productcontent">
37
+ <template>magazento/facebook/like.phtml</template>
38
+ </action>
39
+ </block>
40
+ </reference>
41
+ </catalog_product_view>
42
+
43
+ <!--graph like button-->
44
+ <cms_index_index>
45
+ <reference name="head">
46
+ <block type="core/template" name="facebook_meta">
47
+ <action method="setTemplate" ifconfig="facebook/graphlikebutton/productcontent">
48
+ <template>magazento/facebook/graph_like_head.phtml</template>
49
+ </action>
50
+ </block>
51
+ </reference>
52
+ <reference name="content">
53
+ <block type="core/template" name="facebook_graphlike" before="-" >
54
+ <action method="setTemplate" ifconfig="facebook/graphlikebutton/homecontent">
55
+ <template>magazento/facebook/graph_like.phtml</template>
56
+ </action>
57
+ </block>
58
+ </reference>
59
+ </cms_index_index>
60
+
61
+ <catalog_category_default />
62
+ <catalog_category_layered>
63
+ <reference name="head">
64
+ <block type="core/template" name="facebook_meta">
65
+ <action method="setTemplate" ifconfig="facebook/graphlikebutton/productcontent">
66
+ <template>magazento/facebook/graph_like_head.phtml</template>
67
+ </action>
68
+ </block>
69
+ </reference>
70
+ <reference name="content">
71
+ <block type="core/template" name="facebook_graphlike" before="-" >
72
+ <action method="setTemplate" ifconfig="facebook/graphlikebutton/categorycontent">
73
+ <template>magazento/facebook/graph_like.phtml</template>
74
+ </action>
75
+ </block>
76
+ </reference>
77
+ </catalog_category_layered>
78
+
79
+ <catalog_product_view>
80
+ <reference name="head">
81
+ <block type="core/template" name="facebook_meta">
82
+ <action method="setTemplate" ifconfig="facebook/graphlikebutton/productcontent">
83
+ <template>magazento/facebook/graph_like_head.phtml</template>
84
+ </action>
85
+ </block>
86
+ </reference>
87
+ <reference name="content">
88
+ <block type="core/template" name="facebook_graphlike" before="-" >
89
+ <action method="setTemplate" ifconfig="facebook/graphlikebutton/productcontent">
90
+ <template>magazento/facebook/graph_like.phtml</template>
91
+ </action>
92
+ </block>
93
+ </reference>
94
+ </catalog_product_view>
95
+
96
+ <!--send button-->
97
+ <cms_index_index>
98
+ <reference name="content">
99
+ <block type="core/template" name="facebook_send" before="-" >
100
+ <action method="setTemplate" ifconfig="facebook/sendbutton/homecontent">
101
+ <template>magazento/facebook/send.phtml</template>
102
+ </action>
103
+ </block>
104
+ </reference>
105
+ </cms_index_index>
106
+
107
+ <catalog_category_default />
108
+ <catalog_category_layered>
109
+ <reference name="content">
110
+ <block type="core/template" name="facebook_send" before="-" >
111
+ <action method="setTemplate" ifconfig="facebook/sendbutton/categorycontent">
112
+ <template>magazento/facebook/send.phtml</template>
113
+ </action>
114
+ </block>
115
+ </reference>
116
+ </catalog_category_layered>
117
+
118
+ <catalog_product_view>
119
+ <reference name="content">
120
+ <block type="core/template" name="facebook_send" before="-" >
121
+ <action method="setTemplate" ifconfig="facebook/sendbutton/productcontent">
122
+ <template>magazento/facebook/send.phtml</template>
123
+ </action>
124
+ </block>
125
+ </reference>
126
+ </catalog_product_view>
127
+ <!--comments-->
128
+ <catalog_product_view>
129
+ <reference name="product.info">
130
+ <block type="core/template" name="product.fbcomments" as="fbcomments" template="magazento/facebook/comments.phtml">
131
+ <action method="addToParentGroup" ifconfig="facebook/comments/productcontent">
132
+ <group>detailed_info</group>
133
+ </action>
134
+ </block>
135
+ </reference>
136
+ </catalog_product_view>
137
+ <!--activity-->
138
+ <cms_index_index>
139
+ <reference name="left">
140
+ <block type="core/template" name="facebook_activity" before="-" >
141
+ <action method="setTemplate" ifconfig="facebook/activity/lefthomecolumn">
142
+ <template>magazento/facebook/activity.phtml</template>
143
+ </action>
144
+ </block>
145
+ </reference>
146
+ </cms_index_index>
147
+ <cms_index_index>
148
+ <reference name="right">
149
+ <block type="core/template" name="facebook_activity" before="-" >
150
+ <action method="setTemplate" ifconfig="facebook/activity/righthomecolumn">
151
+ <template>magazento/facebook/activity.phtml</template>
152
+ </action>
153
+ </block>
154
+ </reference>
155
+ </cms_index_index>
156
+
157
+ <catalog_category_layered>
158
+ <reference name="left">
159
+ <block type="core/template" name="facebook_activity" before="-" >
160
+ <action method="setTemplate" ifconfig="facebook/activity/leftcategorycolumn">
161
+ <template>magazento/facebook/activity.phtml</template>
162
+ </action>
163
+ </block>
164
+ </reference>
165
+ </catalog_category_layered>
166
+ <catalog_category_layered>
167
+ <reference name="right">
168
+ <block type="core/template" name="facebook_activity" before="-" >
169
+ <action method="setTemplate" ifconfig="facebook/activity/rightcategorycolumn">
170
+ <template>magazento/facebook/activity.phtml</template>
171
+ </action>
172
+ </block>
173
+ </reference>
174
+ </catalog_category_layered>
175
+
176
+ <catalog_product_view>
177
+ <reference name="left">
178
+ <block type="core/template" name="facebook_activity" before="-" >
179
+ <action method="setTemplate" ifconfig="facebook/activity/leftproductcolumn">
180
+ <template>magazento/facebook/activity.phtml</template>
181
+ </action>
182
+ </block>
183
+ </reference>
184
+ </catalog_product_view>
185
+ <catalog_product_view>
186
+ <reference name="right">
187
+ <block type="core/template" name="facebook_activity" before="-" >
188
+ <action method="setTemplate" ifconfig="facebook/activity/rightproductcolumn">
189
+ <template>magazento/facebook/activity.phtml</template>
190
+ </action>
191
+ </block>
192
+ </reference>
193
+ </catalog_product_view>
194
+ <!--recommendations-->
195
+ <cms_index_index>
196
+ <reference name="left">
197
+ <block type="core/template" name="facebook_recommendations" before="-" >
198
+ <action method="setTemplate" ifconfig="facebook/recommendations/lefthomecolumn">
199
+ <template>magazento/facebook/recommendations.phtml</template>
200
+ </action>
201
+ </block>
202
+ </reference>
203
+ </cms_index_index>
204
+ <cms_index_index>
205
+ <reference name="right">
206
+ <block type="core/template" name="facebook_recommendations" before="-" >
207
+ <action method="setTemplate" ifconfig="facebook/recommendations/righthomecolumn">
208
+ <template>magazento/facebook/recommendations.phtml</template>
209
+ </action>
210
+ </block>
211
+ </reference>
212
+ </cms_index_index>
213
+
214
+ <catalog_category_layered>
215
+ <reference name="left">
216
+ <block type="core/template" name="facebook_recommendations" before="-" >
217
+ <action method="setTemplate" ifconfig="facebook/recommendations/leftcategorycolumn">
218
+ <template>magazento/facebook/recommendations.phtml</template>
219
+ </action>
220
+ </block>
221
+ </reference>
222
+ </catalog_category_layered>
223
+ <catalog_category_layered>
224
+ <reference name="right">
225
+ <block type="core/template" name="facebook_recommendations" before="-" >
226
+ <action method="setTemplate" ifconfig="facebook/recommendations/rightcategorycolumn">
227
+ <template>magazento/facebook/recommendations.phtml</template>
228
+ </action>
229
+ </block>
230
+ </reference>
231
+ </catalog_category_layered>
232
+
233
+ <catalog_product_view>
234
+ <reference name="left">
235
+ <block type="core/template" name="facebook_recommendations" before="-" >
236
+ <action method="setTemplate" ifconfig="facebook/recommendations/leftproductcolumn">
237
+ <template>magazento/facebook/recommendations.phtml</template>
238
+ </action>
239
+ </block>
240
+ </reference>
241
+ </catalog_product_view>
242
+ <catalog_product_view>
243
+ <reference name="right">
244
+ <block type="core/template" name="facebook_recommendations" before="-" >
245
+ <action method="setTemplate" ifconfig="facebook/recommendations/rightproductcolumn">
246
+ <template>magazento/facebook/recommendations.phtml</template>
247
+ </action>
248
+ </block>
249
+ </reference>
250
+ </catalog_product_view>
251
+ <!--likebox-->
252
+ <cms_index_index>
253
+ <reference name="left">
254
+ <block type="core/template" name="facebook_likebox" before="-" >
255
+ <action method="setTemplate" ifconfig="facebook/likebox/lefthomecolumn">
256
+ <template>magazento/facebook/likebox.phtml</template>
257
+ </action>
258
+ </block>
259
+ </reference>
260
+ </cms_index_index>
261
+ <cms_index_index>
262
+ <reference name="right">
263
+ <block type="core/template" name="facebook_likebox" before="-" >
264
+ <action method="setTemplate" ifconfig="facebook/likebox/righthomecolumn">
265
+ <template>magazento/facebook/likebox.phtml</template>
266
+ </action>
267
+ </block>
268
+ </reference>
269
+ </cms_index_index>
270
+
271
+ <catalog_category_layered>
272
+ <reference name="left">
273
+ <block type="core/template" name="facebook_likebox" before="-" >
274
+ <action method="setTemplate" ifconfig="facebook/likebox/leftcategorycolumn">
275
+ <template>magazento/facebook/likebox.phtml</template>
276
+ </action>
277
+ </block>
278
+ </reference>
279
+ </catalog_category_layered>
280
+ <catalog_category_layered>
281
+ <reference name="right">
282
+ <block type="core/template" name="facebook_likebox" before="-" >
283
+ <action method="setTemplate" ifconfig="facebook/likebox/rightcategorycolumn">
284
+ <template>magazento/facebook/likebox.phtml</template>
285
+ </action>
286
+ </block>
287
+ </reference>
288
+ </catalog_category_layered>
289
+
290
+ <catalog_product_view>
291
+ <reference name="left">
292
+ <block type="core/template" name="facebook_likebox" before="-" >
293
+ <action method="setTemplate" ifconfig="facebook/likebox/leftproductcolumn">
294
+ <template>magazento/facebook/likebox.phtml</template>
295
+ </action>
296
+ </block>
297
+ </reference>
298
+ </catalog_product_view>
299
+ <catalog_product_view>
300
+ <reference name="right">
301
+ <block type="core/template" name="facebook_likebox" before="-" >
302
+ <action method="setTemplate" ifconfig="facebook/likebox/rightproductcolumn">
303
+ <template>magazento/facebook/likebox.phtml</template>
304
+ </action>
305
+ </block>
306
+ </reference>
307
+ </catalog_product_view>
308
+ <!--facepile-->
309
+ <cms_index_index>
310
+ <reference name="left">
311
+ <block type="core/template" name="facebook_facepile" before="-" >
312
+ <action method="setTemplate" ifconfig="facebook/facepile/lefthomecolumn">
313
+ <template>magazento/facebook/facepile.phtml</template>
314
+ </action>
315
+ </block>
316
+ </reference>
317
+ </cms_index_index>
318
+ <cms_index_index>
319
+ <reference name="right">
320
+ <block type="core/template" name="facebook_facepile" before="-" >
321
+ <action method="setTemplate" ifconfig="facebook/facepile/righthomecolumn">
322
+ <template>magazento/facebook/facepile.phtml</template>
323
+ </action>
324
+ </block>
325
+ </reference>
326
+ </cms_index_index>
327
+
328
+ <catalog_category_default>
329
+ <reference name="left">
330
+ <block type="core/template" name="facebook_facepile" before="-" >
331
+ <action method="setTemplate" ifconfig="facebook/facepile/leftcategorycolumn">
332
+ <template>magazento/facebook/facepile.phtml</template>
333
+ </action>
334
+ </block>
335
+ </reference>
336
+ </catalog_category_default>
337
+ <catalog_category_layered>
338
+ <reference name="right">
339
+ <block type="core/template" name="facebook_facepile" before="-" >
340
+ <action method="setTemplate" ifconfig="facebook/facepile/rightcategorycolumn">
341
+ <template>magazento/facebook/facepile.phtml</template>
342
+ </action>
343
+ </block>
344
+ </reference>
345
+ </catalog_category_layered>
346
+
347
+ <catalog_product_view>
348
+ <reference name="left">
349
+ <block type="core/template" name="facebook_facepile" before="-" >
350
+ <action method="setTemplate" ifconfig="facebook/facepile/leftproductcolumn">
351
+ <template>magazento/facebook/facepile.phtml</template>
352
+ </action>
353
+ </block>
354
+ </reference>
355
+ </catalog_product_view>
356
+ <catalog_product_view>
357
+ <reference name="right">
358
+ <block type="core/template" name="facebook_facepile" before="-" >
359
+ <action method="setTemplate" ifconfig="facebook/facepile/rightproductcolumn">
360
+ <template>magazento/facebook/facepile.phtml</template>
361
+ </action>
362
+ </block>
363
+ </reference>
364
+ </catalog_product_view>
365
+
366
+ <catalog_product_view>
367
+ <reference name="right">
368
+ <block type="core/template" name="facebook_livestream" before="-" >
369
+ <action method="setTemplate" ifconfig="facebook/livestream/rightproductcolumn">
370
+ <template>magazento/facebook/livestream.phtml</template>
371
+ </action>
372
+ </block>
373
+ </reference>
374
+ </catalog_product_view>
375
+ </layout>
app/design/frontend/default/default/template/magazento/facebook/activity.phtml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
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#xfbml=1"></script>
4
+ <fb:activity site="<?php echo $this->helper('core/url')->getCurrentUrl(); ?>" width="<?php echo Mage::getStoreConfig('facebook/activity/width'); ?>" height="<?php echo Mage::getStoreConfig('facebook/activity/height'); ?>" header="<?php echo (Mage::getStoreConfig('facebook/activity/header')) ? 'true' : 'false'; ?>" font="<?php echo Mage::getStoreConfig('facebook/activity/font'); ?>" border_color="<?php echo Mage::getStoreConfig('facebook/activity/border_color'); ?>" recommendations="<?php echo (Mage::getStoreConfig('facebook/activity/recommendations')) ? 'true' : 'false'; ?>"></fb:activity>
5
+ <p class="magazento-powered">Powered by <a href="http://www.magazento.com/" target="_blank">Magazento</a></p>
6
+ <?php endif; ?>
app/design/frontend/default/default/template/magazento/facebook/comments.phtml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
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#xfbml=1"></script>
4
+ <fb:comments href="<?php echo $this->helper('core/url')->getCurrentUrl();?>" num_posts="<?php echo Mage::getStoreConfig('facebook/comments/num_posts'); ?>" width="<?php echo Mage::getStoreConfig('facebook/comments/width'); ?>"></fb:comments>
5
+ <p class="magazento-powered">Powered by <a href="http://www.magazento.com/" target="_blank">Magazento</a></p>
6
+ <?php endif; ?>
app/design/frontend/default/default/template/magazento/facebook/facepile.phtml ADDED
@@ -0,0 +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; ?>
app/design/frontend/default/default/template/magazento/facebook/graph_like.phtml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if (Mage::getStoreConfig('facebook/general/enabled')) : ?>
2
+ <div id="fb-root"></div>
3
+ <script>
4
+ window.fbAsyncInit = function() {
5
+ FB.init({
6
+ appId : <?php echo Mage::getStoreConfig('facebook/general/appid'); ?>,
7
+ status : true,
8
+ cookie : true,
9
+ xfbml : true
10
+ });
11
+ };
12
+
13
+ (function() {
14
+ var e = document.createElement('script');
15
+ e.src = document.location.protocol + '//connect.facebook.net/<?php echo Mage::app()->getLocale()->getDefaultLocale(); //en_US?>/all.js';
16
+ e.async = true;
17
+ document.getElementById('fb-root').appendChild(e);
18
+ }());
19
+ </script>
20
+ <div><fb:like expr:href=' <?php echo Mage::helper('core/url')->getCurrentUrl(); ?> '/></div>
21
+ <?php endif; ?>
app/design/frontend/default/default/template/magazento/facebook/graph_like_head.phtml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php $product = Mage::registry('current_product'); ?>
2
+
3
+ <meta property="fb:app_id" content="<?php echo Mage::getStoreConfig('facebook/general/appid'); ?>"/>
4
+ <meta property="og:type" content="<?php echo Mage::getStoreConfig('facebook/graphlikebutton/type'); ?>" />
5
+ <meta property="og:url" content="<?php echo $this->helper('core/url')->getCurrentUrl();?>" />
6
+ <meta property="og:site_name" content="<?php echo Mage::app()->getStore()->getName(); ?>" />
7
+ <?php if ($product): ?>
8
+ <meta property="og:title" content="<?php echo trim($product->getName()); ?>"/>
9
+ <meta property="og:image" content="<?php echo Mage::getBaseUrl('media') . ltrim($product->getImage(), '/');?>"/>
10
+ <?php endif; ?>
app/design/frontend/default/default/template/magazento/facebook/like.phtml ADDED
@@ -0,0 +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:like href="<?php echo $this->helper('core/url')->getCurrentUrl();?>" send="true" layout="<?php echo Mage::getStoreConfig('facebook/likebutton/layout'); ?>" width="<?php echo Mage::getStoreConfig('facebook/likebutton/width'); ?>" show_faces="<?php echo (Mage::getStoreConfig('facebook/likebutton/showfaces')) ? 'true' : 'false'; ?>" colorscheme="<?php echo Mage::getStoreConfig('facebook/likebutton/color'); ?>" font="<?php echo Mage::getStoreConfig('facebook/likebutton/font'); ?>"></fb:like>
5
+ <?php endif; ?>
app/design/frontend/default/default/template/magazento/facebook/likebox.phtml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
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#xfbml=1"></script>
4
+ <fb:like-box href="<?php echo $this->helper('core/url')->getCurrentUrl(); ?>" width="<?php echo Mage::getStoreConfig('facebook/likebox/width'); ?>" show_faces="<?php echo (Mage::getStoreConfig('facebook/likebox/showfaces')) ? 'true' : 'false'; ?>" border_color="<?php echo Mage::getStoreConfig('facebook/likebox/border_color'); ?>" stream="<?php echo (Mage::getStoreConfig('facebook/likebox/stream')) ? 'true' : 'false'; ?>" header="<?php echo (Mage::getStoreConfig('facebook/likebox/header')) ? 'true' : 'false'; ?>"></fb:like-box>
5
+ <p class="magazento-powered">Powered by <a href="http://www.magazento.com/" target="_blank">Magazento</a></p>
6
+ <?php endif; ?>
app/design/frontend/default/default/template/magazento/facebook/livestream.phtml ADDED
@@ -0,0 +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:live-stream event_app_id="<?php echo Mage::getStoreConfig('facebook/general/appid'); ?>" width="<?php echo Mage::getStoreConfig('facebook/livestream/width'); ?>" height="<?php echo Mage::getStoreConfig('facebook/livestream/height'); ?>" xid="<?php echo Mage::getStoreConfig('facebook/livestream/xid'); ?>" always_post_to_friends="<?php echo Mage::getStoreConfig('facebook/livestream/always_post_to_friends'); ?>"></fb:live-stream>
5
+ <?php endif; ?>
app/design/frontend/default/default/template/magazento/facebook/recommendations.phtml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
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#xfbml=1"></script>
4
+ <fb:recommendations site="<?php echo $this->helper('core/url')->getCurrentUrl(); ?>" width="<?php echo Mage::getStoreConfig('facebook/recommendations/width'); ?>" height="<?php echo Mage::getStoreConfig('facebook/recommendations/height'); ?>" header="<?php echo (Mage::getStoreConfig('facebook/recommendations/header')) ? 'true' : 'false'; ?>" font="<?php echo Mage::getStoreConfig('facebook/recommendations/font'); ?>" border_color="<?php echo Mage::getStoreConfig('facebook/recommendations/border_color'); ?>"></fb:recommendations>
5
+ <p class="magazento-powered">Powered by <a href="http://www.magazento.com/" target="_blank">Magazento</a></p>
6
+ <?php endif; ?>
7
+
app/design/frontend/default/default/template/magazento/facebook/send.phtml ADDED
@@ -0,0 +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#xfbml=1"></script>
4
+ <fb:send href="<?php echo $this->helper('core/url')->getCurrentUrl();?>" font="<?php echo Mage::getStoreConfig('facebook/likebutton/font'); ?>"></fb:send>
5
+ <?php endif; ?>
app/etc/modules/Magazento_Facebook.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Magazento_Facebook>
5
+ <active>true</active>
6
+ <codePool>community</codePool>
7
+ </Magazento_Facebook>
8
+ </modules>
9
+ </config>
package.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>All-In-One_Facebook_Widgets</name>
4
+ <version>1.0.0</version>
5
+ <stability>stable</stability>
6
+ <license>GPL</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>1.0.0 stable</notes>
12
+ <authors><author><name>Dmitry Poddubny</name><user>Magazento</user><email>magazento@gmail.com</email></author></authors>
13
+ <date>2011-06-21</date>
14
+ <time>16:51:58</time>
15
+ <contents><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="Helper"><file name="Data.php" hash="5695321065576db4feb4f5b716d661db"/></dir><dir name="etc"><file name="config.xml" hash="a234062678734aaf5c05874e3ff03fd9"/><file name="system.xml" hash="6f6655bce4e03ee3b137aa8c8b5332d2"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magazento_Facebook.xml" hash="eff07e7edbfd8f6c049bcca3073dbca3"/></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="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="magazento_facebook.xml" hash="67b8632051a18fdb25994a8468b0e128"/></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="graph_like.phtml" hash="12a46d5ebe749228b11881c7ed4850c5"/><file name="graph_like_head.phtml" hash="bd12d493a1fe2831a8f88bc01dd6b4c2"/><file name="like.phtml" hash="8ca560d0bcd62a345974c904ec97ea40"/><file name="likebox.phtml" hash="677b06b9308a34c9590ee4be3e9496ea"/><file name="livestream.phtml" hash="bb3ce7ee21ede8b808e50bf57d667d2e"/><file name="recommendations.phtml" hash="cf5e5741902673a2cdc3a930028afff7"/><file name="send.phtml" hash="7bac808819c9e11e4eae1ff4491dcbae"/></dir></dir></dir></dir></dir></dir></target></contents>
16
+ <compatible/>
17
+ <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
18
+ </package>
skin/frontend/default/default/magazento/Facebook/fb.css ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .magazento-powered {
2
+ color: #808080;
3
+ font-size: 9px;
4
+ font-family: "lucida grande",tahoma,verdana,arial,sans-serif;
5
+ text-align: left;
6
+ }
7
+
8
+ .magazento-powered a {
9
+ color: #808080;
10
+ text-decoration: none;
11
+ }
12
+
13
+ .magazento-powered a:hover {
14
+ text-decoration: underline;
15
+ }
skin/frontend/default/default/magazento/Facebook/promo.jpg ADDED
Binary file