facebookfreebelvg - Version 1.0.7

Version Notes

Please, feel free to contact us at store@belvg.com

Download this release

Release Info

Developer Magento Core Team
Extension facebookfreebelvg
Version 1.0.7
Comparing to
See all releases


Code changes from version 1.0.6 to 1.0.7

Files changed (23) hide show
  1. app/code/community/Belvg/All/Block/Store.php +24 -0
  2. app/code/community/Belvg/All/etc/adminhtml.xml +3 -0
  3. app/code/community/Belvg/All/etc/config.xml +4 -4
  4. app/code/community/Belvg/All/etc/system.xml +21 -1
  5. app/code/community/Belvg/{FaceboookFree → FacebookFree}/Block/Active.php +2 -2
  6. app/code/community/Belvg/{FaceboookFree → FacebookFree}/Block/Links.php +2 -2
  7. app/code/community/Belvg/{FaceboookFree → FacebookFree}/Helper/Active.php +2 -2
  8. app/code/community/Belvg/{FaceboookFree → FacebookFree}/Helper/Data.php +2 -2
  9. app/code/community/Belvg/{FaceboookFree/Model/FaceboookFree.php → FacebookFree/Model/FacebookFree.php} +2 -2
  10. app/code/community/Belvg/{FaceboookFree/Model/Mysql4/FaceboookFree.php → FacebookFree/Model/Mysql4/FacebookFree.php} +0 -0
  11. app/code/community/Belvg/{FaceboookFree → FacebookFree}/Model/Mysql4/Setup.php +2 -2
  12. app/code/community/Belvg/{FaceboookFree → FacebookFree}/Model/System/Config/Source/Color.php +2 -2
  13. app/code/community/Belvg/{FaceboookFree → FacebookFree}/Model/System/Config/Source/Font.php +0 -0
  14. app/code/community/Belvg/{FaceboookFree → FacebookFree}/Model/System/Config/Source/Layout.php +2 -2
  15. app/code/community/Belvg/{FaceboookFree → FacebookFree}/controllers/CustomerController.php +29 -12
  16. app/code/community/Belvg/{FaceboookFree → FacebookFree}/etc/adminhtml.xml +2 -2
  17. app/code/community/Belvg/{FaceboookFree → FacebookFree}/etc/config.xml +10 -10
  18. app/code/community/Belvg/{FaceboookFree → FacebookFree}/etc/system.xml +1 -1
  19. app/code/community/Belvg/{FaceboookFree → FacebookFree}/sql/facebookfree_setup/mysql4-install-1.0.1.php +0 -0
  20. app/design/frontend/default/default/layout/facebookfree.xml +2 -2
  21. app/design/frontend/default/default/template/facebookfree/links.phtml +54 -0
  22. app/etc/modules/Belvg_FacebookFree.xml +4 -4
  23. package.xml +4 -4
app/code/community/Belvg/All/Block/Store.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ class Belvg_All_Block_Store extends Mage_Adminhtml_Block_System_Config_Form_Fieldset
5
+ {
6
+
7
+ protected $_dummyElement;
8
+ protected $_fieldRenderer;
9
+ protected $_values;
10
+
11
+ public function render(Varien_Data_Form_Element_Abstract $element)
12
+ {
13
+ return '<div id="' . $element->getId() . '">'.$this->getContent().'</div>';
14
+ return $html;
15
+ }
16
+
17
+ private function getContent() {
18
+ $data = null;
19
+ $url = 'http://belvg.com/promoadmin/fbfree.xml';
20
+
21
+ $data = file_get_contents($url);
22
+ return $data;
23
+ }
24
+ }
app/code/community/Belvg/All/etc/adminhtml.xml CHANGED
@@ -14,6 +14,9 @@
14
  <belvgall>
15
  <title>Belvg - Extensions</title>
16
  </belvgall>
 
 
 
17
  </children>
18
  </config>
19
  </children>
14
  <belvgall>
15
  <title>Belvg - Extensions</title>
16
  </belvgall>
17
+ <related>
18
+ <title>Belvg - Extensions</title>
19
+ </related>
20
  </children>
21
  </config>
22
  </children>
app/code/community/Belvg/All/etc/config.xml CHANGED
@@ -51,7 +51,7 @@
51
  <belvgall>
52
  <class>Belvg_All_Model</class>
53
  </belvgall>
54
- </models>
55
  <resources>
56
  <belvgall_setup>
57
  <setup>
@@ -71,7 +71,7 @@
71
  <use>core_read</use>
72
  </connection>
73
  </belvgall_read>
74
- </resources>
75
  </global>
76
  <adminhtml>
77
  <acl>
@@ -106,6 +106,6 @@
106
  </ambase_upds>
107
  </observers>
108
  </controller_action_predispatch>
109
- </events>
110
- </adminhtml>
111
  </config>
51
  <belvgall>
52
  <class>Belvg_All_Model</class>
53
  </belvgall>
54
+ </models>
55
  <resources>
56
  <belvgall_setup>
57
  <setup>
71
  <use>core_read</use>
72
  </connection>
73
  </belvgall_read>
74
+ </resources>
75
  </global>
76
  <adminhtml>
77
  <acl>
106
  </ambase_upds>
107
  </observers>
108
  </controller_action_predispatch>
109
+ </events>
110
+ </adminhtml>
111
  </config>
app/code/community/Belvg/All/etc/system.xml CHANGED
@@ -78,8 +78,28 @@
78
  <source_model>belvgall/source_updates_type</source_model>
79
  </interests>
80
  </fields>
81
- </feed>
82
  </groups>
83
  </belvgall>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
  </sections>
85
  </config>
78
  <source_model>belvgall/source_updates_type</source_model>
79
  </interests>
80
  </fields>
81
+ </feed>
82
  </groups>
83
  </belvgall>
84
+ <related>
85
+ <label>Related Extensions</label>
86
+ <tab>belvg</tab>
87
+ <frontend_type>text</frontend_type>
88
+ <sort_order>9999</sort_order>
89
+ <show_in_default>1</show_in_default>
90
+ <show_in_website>1</show_in_website>
91
+ <show_in_store>1</show_in_store>
92
+ <groups>
93
+ <extensions translate="label">
94
+ <label>Related Extensions</label>
95
+ <frontend_type>text</frontend_type>
96
+ <frontend_model>belvgall/store</frontend_model>
97
+ <sort_order>2</sort_order>
98
+ <show_in_default>1</show_in_default>
99
+ <show_in_website>1</show_in_website>
100
+ <show_in_store>1</show_in_store>
101
+ </extensions>
102
+ </groups>
103
+ </related>
104
  </sections>
105
  </config>
app/code/community/Belvg/{FaceboookFree → FacebookFree}/Block/Active.php RENAMED
@@ -24,12 +24,12 @@
24
  * versions in the future.
25
  *****************************************************
26
  * @category Belvg
27
- * @package Belvg_FaceboookFree
28
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
29
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
30
  */
31
 
32
- class Belvg_FaceboookFree_Block_Active extends Mage_Core_Block_Template {
33
 
34
  public function getAppId()
35
  {
24
  * versions in the future.
25
  *****************************************************
26
  * @category Belvg
27
+ * @package Belvg_FacebookFree
28
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
29
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
30
  */
31
 
32
+ class Belvg_FacebookFree_Block_Active extends Mage_Core_Block_Template {
33
 
34
  public function getAppId()
35
  {
app/code/community/Belvg/{FaceboookFree → FacebookFree}/Block/Links.php RENAMED
@@ -24,12 +24,12 @@
24
  * versions in the future.
25
  *****************************************************
26
  * @category Belvg
27
- * @package Belvg_FaceboookFree
28
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
29
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
30
  */
31
 
32
- class Belvg_FaceboookFree_Block_Links extends Mage_Core_Block_Template
33
  {
34
 
35
  public function addFbLink() {
24
  * versions in the future.
25
  *****************************************************
26
  * @category Belvg
27
+ * @package Belvg_FacebookFree
28
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
29
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
30
  */
31
 
32
+ class Belvg_FacebookFree_Block_Links extends Mage_Core_Block_Template
33
  {
34
 
35
  public function addFbLink() {
app/code/community/Belvg/{FaceboookFree → FacebookFree}/Helper/Active.php RENAMED
@@ -25,12 +25,12 @@
25
  * versions in the future.
26
  * ****************************************************
27
  * @category Belvg
28
- * @package Belvg_FaceboookFree
29
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
30
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
31
  */
32
 
33
- class Belvg_FaceboookFree_Helper_Active extends Mage_Core_Helper_Abstract {
34
 
35
  public function getAppId() {
36
  return Mage::getStoreConfig('facebookfree/settings/appid');
25
  * versions in the future.
26
  * ****************************************************
27
  * @category Belvg
28
+ * @package Belvg_FacebookFree
29
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
30
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
31
  */
32
 
33
+ class Belvg_FacebookFree_Helper_Active extends Mage_Core_Helper_Abstract {
34
 
35
  public function getAppId() {
36
  return Mage::getStoreConfig('facebookfree/settings/appid');
app/code/community/Belvg/{FaceboookFree → FacebookFree}/Helper/Data.php RENAMED
@@ -24,12 +24,12 @@
24
  * versions in the future.
25
  *****************************************************
26
  * @category Belvg
27
- * @package Belvg_FaceboookFree
28
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
29
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
30
  */
31
 
32
- class Belvg_FaceboookFree_Helper_Data extends Mage_Core_Helper_Abstract
33
  {
34
 
35
  }
24
  * versions in the future.
25
  *****************************************************
26
  * @category Belvg
27
+ * @package Belvg_FacebookFree
28
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
29
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
30
  */
31
 
32
+ class Belvg_FacebookFree_Helper_Data extends Mage_Core_Helper_Abstract
33
  {
34
 
35
  }
app/code/community/Belvg/{FaceboookFree/Model/FaceboookFree.php → FacebookFree/Model/FacebookFree.php} RENAMED
@@ -24,12 +24,12 @@
24
  * versions in the future.
25
  *****************************************************
26
  * @category Belvg
27
- * @package Belvg_FaceboookFree
28
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
29
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
30
  */
31
 
32
- class Belvg_FaceboookFree_Model_FacebookFree extends Mage_Core_Model_Abstract
33
  {
34
  public function _construct()
35
  {
24
  * versions in the future.
25
  *****************************************************
26
  * @category Belvg
27
+ * @package Belvg_FacebookFree
28
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
29
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
30
  */
31
 
32
+ class Belvg_FacebookFree_Model_FacebookFree extends Mage_Core_Model_Abstract
33
  {
34
  public function _construct()
35
  {
app/code/community/Belvg/{FaceboookFree/Model/Mysql4/FaceboookFree.php → FacebookFree/Model/Mysql4/FacebookFree.php} RENAMED
File without changes
app/code/community/Belvg/{FaceboookFree → FacebookFree}/Model/Mysql4/Setup.php RENAMED
@@ -24,11 +24,11 @@
24
  * versions in the future.
25
  *****************************************************
26
  * @category Belvg
27
- * @package Belvg_FaceboookFree
28
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
29
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
30
  */
31
 
32
- class Belvg_FaceboookFree_Mysql4_Setup extends Mage_Eav_Model_Entity_Setup
33
  {
34
  }
24
  * versions in the future.
25
  *****************************************************
26
  * @category Belvg
27
+ * @package Belvg_FacebookFree
28
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
29
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
30
  */
31
 
32
+ class Belvg_FacebookFree_Mysql4_Setup extends Mage_Eav_Model_Entity_Setup
33
  {
34
  }
app/code/community/Belvg/{FaceboookFree → FacebookFree}/Model/System/Config/Source/Color.php RENAMED
@@ -24,12 +24,12 @@
24
  * versions in the future.
25
  *****************************************************
26
  * @category Belvg
27
- * @package Belvg_FaceboookFree
28
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
29
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
30
  */
31
 
32
- class Belvg_FaceboookFree_Model_System_Config_Source_Color
33
  {
34
  public function toOptionArray()
35
  {
24
  * versions in the future.
25
  *****************************************************
26
  * @category Belvg
27
+ * @package Belvg_FacebookFree
28
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
29
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
30
  */
31
 
32
+ class Belvg_FacebookFree_Model_System_Config_Source_Color
33
  {
34
  public function toOptionArray()
35
  {
app/code/community/Belvg/{FaceboookFree → FacebookFree}/Model/System/Config/Source/Font.php RENAMED
File without changes
app/code/community/Belvg/{FaceboookFree → FacebookFree}/Model/System/Config/Source/Layout.php RENAMED
@@ -24,12 +24,12 @@
24
  * versions in the future.
25
  *****************************************************
26
  * @category Belvg
27
- * @package Belvg_FaceboookFree
28
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
29
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
30
  */
31
 
32
- class Belvg_FaceboookFree_Model_System_Config_Source_Layout
33
  {
34
  public function toOptionArray()
35
  {
24
  * versions in the future.
25
  *****************************************************
26
  * @category Belvg
27
+ * @package Belvg_FacebookFree
28
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
29
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
30
  */
31
 
32
+ class Belvg_FacebookFree_Model_System_Config_Source_Layout
33
  {
34
  public function toOptionArray()
35
  {
app/code/community/Belvg/{FaceboookFree → FacebookFree}/controllers/CustomerController.php RENAMED
@@ -25,12 +25,12 @@
25
  * versions in the future.
26
  * ****************************************************
27
  * @category Belvg
28
- * @package Belvg_FaceboookFree
29
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
30
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
31
  */
32
 
33
- class Belvg_FaceboookFree_CustomerController extends Mage_Core_Controller_Front_Action {
34
 
35
  public function LoginAction()
36
  {
@@ -39,11 +39,10 @@ class Belvg_FaceboookFree_CustomerController extends Mage_Core_Controller_Front_
39
 
40
  $cookie = $this->get_facebook_cookie(Mage::getStoreConfig('facebookfree/settings/appid'), Mage::getStoreConfig('facebookfree/settings/secret'));
41
 
42
- $me = (array) json_decode(file_get_contents(
43
- 'https://graph.facebook.com/me?access_token=' .
44
- $cookie['access_token']));
45
 
46
  if (!is_null($me)) {
 
47
  $session = Mage::getSingleton('customer/session');
48
 
49
  $db_read = Mage::getSingleton('core/resource')->getConnection('facebookfree_read');
@@ -58,9 +57,11 @@ class Belvg_FaceboookFree_CustomerController extends Mage_Core_Controller_Front_
58
  $session->loginById($data['customer_id']);
59
  } else {
60
  $sql = 'SELECT `entity_id`
61
- FROM `' . $tablePrefix . 'customer_entity`
62
- WHERE email = "' . $me['email'] . '"
63
- LIMIT 1';
 
 
64
  $r = $db_read->fetchRow($sql);
65
 
66
  if ($r) {
@@ -161,11 +162,12 @@ class Belvg_FaceboookFree_CustomerController extends Mage_Core_Controller_Front_
161
  if (!is_null($signed_request)) {
162
  // the cookie is valid/signed correctly
163
  // lets change "code" into an "access_token"
164
- $access_token_response = file_get_contents("https://graph.facebook.com/oauth/access_token?client_id=$app_id&redirect_uri=&client_secret=$app_secret&code=$signed_request[code]");
165
- parse_str($access_token_response);
166
- @$signed_request['access_token'] = $access_token;
167
- @$signed_request['expires'] = time() + $expires;
168
  }
 
169
  return $signed_request;
170
  }
171
 
@@ -196,5 +198,20 @@ class Belvg_FaceboookFree_CustomerController extends Mage_Core_Controller_Front_
196
  {
197
  return base64_decode(strtr($input, '-_', '+/'));
198
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
199
 
200
  }
25
  * versions in the future.
26
  * ****************************************************
27
  * @category Belvg
28
+ * @package Belvg_FacebookFree
29
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
30
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
31
  */
32
 
33
+ class Belvg_FacebookFree_CustomerController extends Mage_Core_Controller_Front_Action {
34
 
35
  public function LoginAction()
36
  {
39
 
40
  $cookie = $this->get_facebook_cookie(Mage::getStoreConfig('facebookfree/settings/appid'), Mage::getStoreConfig('facebookfree/settings/secret'));
41
 
42
+ $me = json_decode($this->getFbData('https://graph.facebook.com/me?access_token=' . $cookie['access_token']));
 
 
43
 
44
  if (!is_null($me)) {
45
+ $me = (array)$me;
46
  $session = Mage::getSingleton('customer/session');
47
 
48
  $db_read = Mage::getSingleton('core/resource')->getConnection('facebookfree_read');
57
  $session->loginById($data['customer_id']);
58
  } else {
59
  $sql = 'SELECT `entity_id`
60
+ FROM `' . $tablePrefix . 'customer_entity`
61
+ WHERE email = "' . $me['email'] . '"
62
+ AND store_id = "'.Mage::app()->getStore()->getStoreId().'"
63
+ AND website_id = "'.Mage::getModel('core/store')->load(Mage::app()->getStore()->getStoreId())->getWebsiteId().'"
64
+ LIMIT 1';
65
  $r = $db_read->fetchRow($sql);
66
 
67
  if ($r) {
162
  if (!is_null($signed_request)) {
163
  // the cookie is valid/signed correctly
164
  // lets change "code" into an "access_token"
165
+ $access_token_response = $this->getFbData("https://graph.facebook.com/oauth/access_token?client_id=$app_id&redirect_uri=&client_secret=$app_secret&code=$signed_request[code]");
166
+ parse_str($access_token_response);
167
+ $signed_request['access_token'] = $access_token;
168
+ $signed_request['expires'] = time() + $expires;
169
  }
170
+
171
  return $signed_request;
172
  }
173
 
198
  {
199
  return base64_decode(strtr($input, '-_', '+/'));
200
  }
201
+
202
+ private function getFbData($url)
203
+ {
204
+ $data = null;
205
+
206
+ if (ini_get('allow_url_fopen') && function_exists('file_get_contents')) {
207
+ $data = file_get_contents($url);
208
+ } else {
209
+ $ch = curl_init();
210
+ curl_setopt($ch, CURLOPT_URL, $url);
211
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
212
+ $data = curl_exec($ch);
213
+ }
214
+ return $data;
215
+ }
216
 
217
  }
app/code/community/Belvg/{FaceboookFree → FacebookFree}/etc/adminhtml.xml RENAMED
@@ -25,7 +25,7 @@
25
  * versions in the future.
26
  *****************************************************
27
  * @category Belvg
28
- * @package Belvg_FaceboookFree
29
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
30
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
31
  */
@@ -43,7 +43,7 @@
43
  <config>
44
  <children>
45
  <facebookfree translate="title">
46
- <title>Faceboook Connect and Like Free</title>
47
  </facebookfree>
48
  </children>
49
  </config>
25
  * versions in the future.
26
  *****************************************************
27
  * @category Belvg
28
+ * @package Belvg_FacebookFree
29
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
30
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
31
  */
43
  <config>
44
  <children>
45
  <facebookfree translate="title">
46
+ <title>Facebook Connect and Like Free</title>
47
  </facebookfree>
48
  </children>
49
  </config>
app/code/community/Belvg/{FaceboookFree → FacebookFree}/etc/config.xml RENAMED
@@ -25,23 +25,23 @@
25
  * versions in the future.
26
  *****************************************************
27
  * @category Belvg
28
- * @package Belvg_FaceboookFree
29
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
30
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
31
  */
32
  -->
33
  <config>
34
  <modules>
35
- <Belvg_FaceboookFree>
36
- <version>1.0.6</version>
37
- </Belvg_FaceboookFree>
38
  </modules>
39
  <frontend>
40
  <routers>
41
  <facebookfree>
42
  <use>standard</use>
43
  <args>
44
- <module>Belvg_FaceboookFree</module>
45
  <frontName>facebookfree</frontName>
46
  </args>
47
  </facebookfree>
@@ -57,11 +57,11 @@
57
  <global>
58
  <models>
59
  <facebookfree>
60
- <class>Belvg_FaceboookFree_Model</class>
61
  <resourceModel>facebookfree_mysql4</resourceModel>
62
  </facebookfree>
63
  <facebookfree_mysql4>
64
- <class>Belvg_FaceboookFree_Model</class>
65
  <entities>
66
  <facebookfree>
67
  <table>belvg_facebook_customer</table>
@@ -72,7 +72,7 @@
72
  <resources>
73
  <facebookfree_setup>
74
  <setup>
75
- <module>Belvg_FaceboookFree</module>
76
  </setup>
77
  <connection>
78
  <use>core_setup</use>
@@ -91,12 +91,12 @@
91
  </resources>
92
  <blocks>
93
  <facebookfree>
94
- <class>Belvg_FaceboookFree_Block</class>
95
  </facebookfree>
96
  </blocks>
97
  <helpers>
98
  <facebookfree>
99
- <class>Belvg_FaceboookFree_Helper</class>
100
  </facebookfree>
101
  </helpers>
102
  </global>
25
  * versions in the future.
26
  *****************************************************
27
  * @category Belvg
28
+ * @package Belvg_FacebookFree
29
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
30
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
31
  */
32
  -->
33
  <config>
34
  <modules>
35
+ <Belvg_FacebookFree>
36
+ <version>1.0.7</version>
37
+ </Belvg_FacebookFree>
38
  </modules>
39
  <frontend>
40
  <routers>
41
  <facebookfree>
42
  <use>standard</use>
43
  <args>
44
+ <module>Belvg_FacebookFree</module>
45
  <frontName>facebookfree</frontName>
46
  </args>
47
  </facebookfree>
57
  <global>
58
  <models>
59
  <facebookfree>
60
+ <class>Belvg_FacebookFree_Model</class>
61
  <resourceModel>facebookfree_mysql4</resourceModel>
62
  </facebookfree>
63
  <facebookfree_mysql4>
64
+ <class>Belvg_FacebookFree_Model</class>
65
  <entities>
66
  <facebookfree>
67
  <table>belvg_facebook_customer</table>
72
  <resources>
73
  <facebookfree_setup>
74
  <setup>
75
+ <module>Belvg_FacebookFree</module>
76
  </setup>
77
  <connection>
78
  <use>core_setup</use>
91
  </resources>
92
  <blocks>
93
  <facebookfree>
94
+ <class>Belvg_FacebookFree_Block</class>
95
  </facebookfree>
96
  </blocks>
97
  <helpers>
98
  <facebookfree>
99
+ <class>Belvg_FacebookFree_Helper</class>
100
  </facebookfree>
101
  </helpers>
102
  </global>
app/code/community/Belvg/{FaceboookFree → FacebookFree}/etc/system.xml RENAMED
@@ -25,7 +25,7 @@
25
  * versions in the future.
26
  *****************************************************
27
  * @category Belvg
28
- * @package Belvg_FaceboookFree
29
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
30
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
31
  */
25
  * versions in the future.
26
  *****************************************************
27
  * @category Belvg
28
+ * @package Belvg_FacebookFree
29
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
30
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
31
  */
app/code/community/Belvg/{FaceboookFree → FacebookFree}/sql/facebookfree_setup/mysql4-install-1.0.1.php RENAMED
File without changes
app/design/frontend/default/default/layout/facebookfree.xml CHANGED
@@ -25,7 +25,7 @@
25
  * versions in the future.
26
  *****************************************************
27
  * @category Belvg
28
- * @package Belvg_FaceboookFree
29
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
30
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
31
  */
@@ -41,7 +41,7 @@
41
  </reference>
42
  <reference name="top.links">
43
  <action method="setTemplate" ifconfig="facebookfree/settings/enabled" ifvalue="1">
44
- <template>facebookfree/top.links.phtml</template>
45
  </action>
46
  </reference>
47
  <reference name="before_body_end">
25
  * versions in the future.
26
  *****************************************************
27
  * @category Belvg
28
+ * @package Belvg_FacebookFree
29
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
30
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
31
  */
41
  </reference>
42
  <reference name="top.links">
43
  <action method="setTemplate" ifconfig="facebookfree/settings/enabled" ifvalue="1">
44
+ <template>facebookfree/links.phtml</template>
45
  </action>
46
  </reference>
47
  <reference name="before_body_end">
app/design/frontend/default/default/template/facebookfree/links.phtml ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * BelVG LLC.
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the EULA
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
11
+ *
12
+ /***************************************
13
+ * MAGENTO EDITION USAGE NOTICE *
14
+ *****************************************/
15
+ /* This package designed for Magento COMMUNITY edition
16
+ * BelVG does not guarantee correct work of this extension
17
+ * on any other Magento edition except Magento COMMUNITY edition.
18
+ * BelVG does not provide extension support in case of
19
+ * incorrect edition usage.
20
+ /***************************************
21
+ * DISCLAIMER *
22
+ *****************************************/
23
+ /* Do not edit or add to this file if you wish to upgrade Magento to newer
24
+ * versions in the future.
25
+ *****************************************************
26
+ * @category Belvg
27
+ * @package Belvg_FacebookAll
28
+ * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
29
+ * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
30
+ */
31
+ ?>
32
+ <?php
33
+ /**
34
+ * @see Mage_Page_Block_Template_Links
35
+ */
36
+ ?>
37
+ <?php $_links = $this->getLinks(); ?>
38
+
39
+ <div id="fb-root"></div>
40
+ <?php if(!Mage::getSingleton('customer/session')->isLoggedIn()):?>
41
+ <a href="#" onclick="return fblogin();" class="fb_button_ps"><img src="<?php echo $this->helper('facebookfree/active')->getLoginImg()?>" alt="<?php echo $this->__('Connect with Facebook')?>" /></a>
42
+ <?php endif?>
43
+
44
+ <?php if(count($_links)>0): ?>
45
+ <ul class="links"<?php if($this->getName()): ?> id="<?php echo $this->getName() ?>"<?php endif;?>>
46
+ <?php foreach($_links as $_link): ?>
47
+ <?php if ($_link instanceof Mage_Core_Block_Abstract):?>
48
+ <?php echo $_link->toHtml() ?>
49
+ <?php else: ?>
50
+ <li<?php if($_link->getIsFirst()||$_link->getIsLast()): ?> class="<?php if($_link->getIsFirst()): ?>first<?php endif; ?><?php if($_link->getIsLast()): ?> last<?php endif; ?>"<?php endif; ?> <?php echo $_link->getLiParams() ?>><?php echo $_link->getBeforeText() ?><a href="<?php echo $_link->getUrl() ?>" title="<?php echo $_link->getTitle() ?>" <?php echo $_link->getAParams() ?>><?php echo $_link->getLabel() ?></a><?php echo $_link->getAfterText() ?></li>
51
+ <?php endif;?>
52
+ <?php endforeach; ?>
53
+ </ul>
54
+ <?php endif; ?>
app/etc/modules/Belvg_FacebookFree.xml CHANGED
@@ -25,17 +25,17 @@
25
  * versions in the future.
26
  *****************************************************
27
  * @category Belvg
28
- * @package Belvg_FaceboookFree
29
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
30
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
31
  */
32
  -->
33
  <config>
34
  <modules>
35
- <Belvg_FaceboookFree>
36
  <active>true</active>
37
  <codePool>community</codePool>
38
- <version>1.0.6</version>
39
- </Belvg_FaceboookFree>
40
  </modules>
41
  </config>
25
  * versions in the future.
26
  *****************************************************
27
  * @category Belvg
28
+ * @package Belvg_FacebookFree
29
  * @copyright Copyright (c) 2010 - 2011 BelVG LLC. (http://www.belvg.com)
30
  * @license http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt
31
  */
32
  -->
33
  <config>
34
  <modules>
35
+ <Belvg_FacebookFree>
36
  <active>true</active>
37
  <codePool>community</codePool>
38
+ <version>1.0.7</version>
39
+ </Belvg_FacebookFree>
40
  </modules>
41
  </config>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>facebookfreebelvg</name>
4
- <version>1.0.6</version>
5
  <stability>stable</stability>
6
  <license uri="http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt">BelVG EULA</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>Facebook connect and publish extension allows to login into store using Facebook credentials. Allows to add configurable iLike button to the product page.</description>
11
  <notes>Please, feel free to contact us at store@belvg.com</notes>
12
  <authors><author><name>Belvg</name><user>auto-converted</user><email>store@belvg.com</email></author></authors>
13
- <date>2011-12-29</date>
14
- <time>09:54:28</time>
15
- <contents><target name="magecommunity"><dir name="Belvg"><dir name="All"><dir name="Block"><file name="Extensions.php" hash="ab6e5a12637e0a8a51a81e856918484e"/></dir><dir name="Helper"><file name="Data.php" hash="6c217e489096017e9d54c85e283d33a3"/></dir><dir name="Model"><dir name="Source"><dir name="Updates"><file name="Type.php" hash="82686a1617964af07e1304d5dbd50936"/></dir></dir><file name="Feed.php" hash="3c54cb74916efad6d953217b78df8552"/></dir><dir name="etc"><file name="adminhtml.xml" hash="bfd8ef99e1958f2b87edd03a84ad5504"/><file name="config.xml" hash="56762be7c640ceb65e8b896c40c9ce59"/><file name="system.xml" hash="b5e962aa832380538e469fdf17fbd64e"/></dir><dir name="sql"><dir name="belvgall_setup"><file name="mysql4-install-1.0.0.php" hash="ba30c778afd0f4a959ec9f86d439ea0a"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="5e95ac8153d421f304f5ee9af6d46250"/></dir></dir></dir><dir name="FaceboookFree"><dir name="Block"><file name="Active.php" hash="813d46911f6500338c30fa5c179e12d3"/><file name="Links.php" hash="a850aed6d41f7e377b1603b5791805e7"/></dir><dir name="Helper"><file name="Active.php" hash="6f566278c3998331b1edbf266310b67b"/><file name="Data.php" hash="1825805274bce0784ec27ce9bcd1f525"/></dir><dir name="Model"><dir name="Mysql4"><file name="FaceboookFree.php" hash="6638dee145ed01b0ec6ffe82807bebf9"/><file name="Setup.php" hash="5d7ef9e98a18c04c0d8d1457c96492aa"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Color.php" hash="bd27002596a4bc6018a52618a60b4fcc"/><file name="Font.php" hash="88d5212453523acc35ee12ab740ba687"/><file name="Layout.php" hash="d8b4cd4c2bb3ae2d40b0a43e84b2812f"/></dir></dir></dir><file name="FaceboookFree.php" hash="6ae1b5b8f461794a42960af5694a0540"/></dir><dir name="controllers"><file name="CustomerController.php" hash="ad2c56ac9f993fb1dca65e826fb0d62d"/></dir><dir name="etc"><file name="adminhtml.xml" hash="918c2b409a939f35b4e28ce8d1a8d2e9"/><file name="config.xml" hash="7d73adf06e71462c64fb86f1de8c9080"/><file name="system.xml" hash="9db266fa5ccfb5d1abc2f254ac74f9ea"/></dir><dir name="sql"><dir name="facebookfree_setup"><file name="mysql4-install-1.0.1.php" hash="4fb61d52de12359987c0f4975093d4b2"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="facebookfree.xml" hash="5a4a28ddce5581acbba883eb8072983c"/></dir><dir name="template"><dir name="facebookfree"><dir name="like"><dir name="product"><dir name="view"><file name="addto.phtml" hash="2587002138a3be0944e98079309e8524"/></dir></dir><file name="head.phtml" hash="b618691ffc33a0e71ecf82c8137829e4"/></dir><file name="activity.phtml" hash="dac9de014353fbfc378b0a86b25426cf"/><file name="block.phtml" hash="48679d8096f0380022ed4901a8aff8f5"/><file name="checkoutlogin.phtml" hash="3f2fbfe2b973338bd595b1664f67d0b4"/><file name="login.phtml" hash="d229b7c2f3e704e1b51616f235024d0c"/><file name="top.links.phtml" hash="4b2e33ac3ab51f53c0616c09da1150ee"/></dir></dir></dir></dir></dir></target><target name="magelib"><dir name="Facebook"><file name="Api.php" hash="daf56a2b2c80b069f92ce7e4bee1782f"/><file name="Exception.php" hash="6992e5cc68e456c0841a002cbd92a12b"/><file name="fb_ca_chain_bundle.crt" hash="c3055d03e94bbee13c7c6cc3a76083d9"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><dir name="belvg"><file name="facebookfree.css" hash="c211abe25deeef7c6c31059efa58d701"/></dir></dir><dir name="images"><dir name="belvg"><file name="fb.gif" hash="865312ef4436675a9c79bacb7c97407f"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="belvgall"><file name="bad.gif" hash="b8379f1ba7ab552ca46b9d5fd0452345"/><file name="delete.jpg" hash="6bb134dbca5cbde8e9873b4eb8f8faa8"/><file name="info.gif" hash="421f023bf6a8a17b9c0347ab851f167f"/><file name="ok.gif" hash="a38bc2ee6e116e39c6e2e3013ee50f5e"/><file name="update.gif" hash="8342e11f7739fcfa25134707f0536ed6"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Belvg_All.xml" hash="c288d8578bf4dc8c6c29ba1fe341f1d7"/><file name="Belvg_FacebookFree.xml" hash="1a8addeef2cdd64b4cb9036dc399e6a6"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>facebookfreebelvg</name>
4
+ <version>1.0.7</version>
5
  <stability>stable</stability>
6
  <license uri="http://store.belvg.com/BelVG-LICENSE-COMMUNITY.txt">BelVG EULA</license>
7
  <channel>community</channel>
10
  <description>Facebook connect and publish extension allows to login into store using Facebook credentials. Allows to add configurable iLike button to the product page.</description>
11
  <notes>Please, feel free to contact us at store@belvg.com</notes>
12
  <authors><author><name>Belvg</name><user>auto-converted</user><email>store@belvg.com</email></author></authors>
13
+ <date>2012-02-06</date>
14
+ <time>12:44:03</time>
15
+ <contents><target name="magecommunity"><dir name="Belvg"><dir name="All"><dir name="Block"><file name="Extensions.php" hash="ab6e5a12637e0a8a51a81e856918484e"/><file name="Store.php" hash="8ff500479cea1bba9c84e6aa9cc9f247"/></dir><dir name="Helper"><file name="Data.php" hash="6c217e489096017e9d54c85e283d33a3"/></dir><dir name="Model"><dir name="Source"><dir name="Updates"><file name="Type.php" hash="82686a1617964af07e1304d5dbd50936"/></dir></dir><file name="Feed.php" hash="3c54cb74916efad6d953217b78df8552"/></dir><dir name="etc"><file name="adminhtml.xml" hash="5323f48b2c171d8100871a2c6238f195"/><file name="config.xml" hash="8c30a8051f39cc2e7c7225b701d649aa"/><file name="system.xml" hash="c98c600a579eb3f736dd2016a50a2ec9"/></dir><dir name="sql"><dir name="belvgall_setup"><file name="mysql4-install-1.0.0.php" hash="ba30c778afd0f4a959ec9f86d439ea0a"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="5e95ac8153d421f304f5ee9af6d46250"/></dir></dir></dir><dir name="FacebookFree"><dir name="Block"><file name="Active.php" hash="97f34012d994f76c8e2c4349817f52f4"/><file name="Links.php" hash="ff5815c2216fb174c183b940378977bc"/></dir><dir name="Helper"><file name="Active.php" hash="362617beae6b47cee7a1d79db0e0745c"/><file name="Data.php" hash="24338a8cb9f50db14629c4335f6da510"/></dir><dir name="Model"><dir name="Mysql4"><file name="FacebookFree.php" hash="6638dee145ed01b0ec6ffe82807bebf9"/><file name="Setup.php" hash="4d4a6c4e072b4f00e09c958516d2c3c6"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Color.php" hash="f05f16bf0a791d527417e11945ea33f7"/><file name="Font.php" hash="88d5212453523acc35ee12ab740ba687"/><file name="Layout.php" hash="c74924cd162a60a4856f47d182000445"/></dir></dir></dir><file name="FacebookFree.php" hash="dc00c8226ce6e9ad38f19296f805ec3b"/></dir><dir name="controllers"><file name="CustomerController.php" hash="e44b773da6165cef2101966a8fc4228b"/></dir><dir name="etc"><file name="adminhtml.xml" hash="4f3ca0504882266a942decab99d349e1"/><file name="config.xml" hash="83f1e81c6022c8cc0de95edfbfbc025e"/><file name="system.xml" hash="c3678d7261e2cedb4dd9c72d52cdf505"/></dir><dir name="sql"><dir name="facebookfree_setup"><file name="mysql4-install-1.0.1.php" hash="4fb61d52de12359987c0f4975093d4b2"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="facebookfree.xml" hash="90aeeb10c7c377da58f5913b8a10700e"/></dir><dir name="template"><dir name="facebookfree"><dir name="like"><dir name="product"><dir name="view"><file name="addto.phtml" hash="2587002138a3be0944e98079309e8524"/></dir></dir><file name="head.phtml" hash="b618691ffc33a0e71ecf82c8137829e4"/></dir><file name="activity.phtml" hash="dac9de014353fbfc378b0a86b25426cf"/><file name="block.phtml" hash="48679d8096f0380022ed4901a8aff8f5"/><file name="checkoutlogin.phtml" hash="3f2fbfe2b973338bd595b1664f67d0b4"/><file name="links.phtml" hash="d25cc4b7898990a9318ae97e1fdaeabb"/><file name="login.phtml" hash="d229b7c2f3e704e1b51616f235024d0c"/><file name="top.links.phtml" hash="4b2e33ac3ab51f53c0616c09da1150ee"/></dir></dir></dir></dir></dir></target><target name="magelib"><dir name="Facebook"><file name="Api.php" hash="daf56a2b2c80b069f92ce7e4bee1782f"/><file name="Exception.php" hash="6992e5cc68e456c0841a002cbd92a12b"/><file name="fb_ca_chain_bundle.crt" hash="c3055d03e94bbee13c7c6cc3a76083d9"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><dir name="belvg"><file name="facebookfree.css" hash="c211abe25deeef7c6c31059efa58d701"/></dir></dir><dir name="images"><dir name="belvg"><file name="fb.gif" hash="865312ef4436675a9c79bacb7c97407f"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="belvgall"><file name="bad.gif" hash="b8379f1ba7ab552ca46b9d5fd0452345"/><file name="delete.jpg" hash="6bb134dbca5cbde8e9873b4eb8f8faa8"/><file name="info.gif" hash="421f023bf6a8a17b9c0347ab851f167f"/><file name="ok.gif" hash="a38bc2ee6e116e39c6e2e3013ee50f5e"/><file name="update.gif" hash="8342e11f7739fcfa25134707f0536ed6"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Belvg_All.xml" hash="c288d8578bf4dc8c6c29ba1fe341f1d7"/><file name="Belvg_FacebookFree.xml" hash="65572b2c55e54010eeed626fad87639a"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>