Version Notes
Facebook Open Graph 2.0 extension is compatible with Magento Enterprise Edition and Professional Edition 1.11 or later, and Magento Community Edition 1.6 or later.
Download this release
Release Info
Developer | Magento Core Team |
Extension | Social_Facebook |
Version | 1.6.0.0 |
Comparing to | |
See all releases |
Code changes from version 1.4.0.0 to 1.6.0.0
- app/code/community/Social/Facebook/Block/Action.php +3 -3
- app/code/community/Social/Facebook/Block/Adminhtml/Facebuttons.php +3 -47
- app/code/community/Social/Facebook/Block/Adminhtml/Select.php +3 -16
- app/code/community/Social/Facebook/Block/Like.php +3 -2
- app/code/community/Social/Facebook/Model/Facebook.php +2 -9
- app/code/community/Social/Facebook/Model/{Mysql4 → Resource}/Facebook.php +6 -6
- app/code/community/Social/Facebook/Model/{Mysql4 → Resource}/Facebook/Collection.php +7 -7
- app/code/community/Social/Facebook/{sql/social_facebook_setup/mysql4-install-1.4.0.php → Model/Resource/Setup.php} +9 -16
- app/code/community/Social/Facebook/etc/adminhtml.xml +49 -0
- app/code/community/Social/Facebook/etc/config.xml +6 -38
- app/code/community/Social/Facebook/etc/system.xml +3 -3
- app/code/community/Social/Facebook/sql/social_facebook_setup/install-1.6.0.0.php +56 -0
- app/code/community/Social/Facebook/sql/social_facebook_setup/{mysql4-upgrade-1.4.0-1.4.0.1.php → upgrade-1.6.0.0-1.6.0.1.php} +13 -15
- app/design/frontend/base/default/layout/facebook.xml +14 -22
- app/design/frontend/base/default/template/social/facebook/box.phtml~ +0 -55
- package.xml +7 -7
- skin/frontend/base/default/css/facebook.css +17 -17
app/code/community/Social/Facebook/Block/Action.php
CHANGED
@@ -14,8 +14,8 @@
|
|
14 |
*
|
15 |
* @category Social
|
16 |
* @package Social_Facebook
|
17 |
-
* @copyright Copyright (c)
|
18 |
-
* @license http://
|
19 |
*/
|
20 |
|
21 |
class Social_Facebook_Block_Action extends Mage_Core_Block_Template
|
@@ -52,7 +52,7 @@ class Social_Facebook_Block_Action extends Mage_Core_Block_Template
|
|
52 |
'facebook/index/redirect/',
|
53 |
array(
|
54 |
'productId' => $this->getProductId(),
|
55 |
-
'action' => $this->
|
56 |
));
|
57 |
}
|
58 |
}
|
14 |
*
|
15 |
* @category Social
|
16 |
* @package Social_Facebook
|
17 |
+
* @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
21 |
class Social_Facebook_Block_Action extends Mage_Core_Block_Template
|
52 |
'facebook/index/redirect/',
|
53 |
array(
|
54 |
'productId' => $this->getProductId(),
|
55 |
+
'action' => $this->escapeHtml($action),
|
56 |
));
|
57 |
}
|
58 |
}
|
app/code/community/Social/Facebook/Block/Adminhtml/Facebuttons.php
CHANGED
@@ -12,25 +12,12 @@
|
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
*
|
15 |
-
*
|
16 |
-
*
|
17 |
-
*
|
18 |
-
* versions in the future. If you wish to customize Magento for your
|
19 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
-
*
|
21 |
-
* @category Mage
|
22 |
-
* @package Mage_Adminhtml
|
23 |
-
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
27 |
-
/**
|
28 |
-
* Adminhtml system config array field renderer
|
29 |
-
*
|
30 |
-
* @category Mage
|
31 |
-
* @package Mage_Adminhtml
|
32 |
-
* @author Magento Core Team <core@magentocommerce.com>
|
33 |
-
*/
|
34 |
class Social_Facebook_Block_Adminhtml_Facebuttons extends Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract
|
35 |
{
|
36 |
/**
|
@@ -38,20 +25,6 @@ class Social_Facebook_Block_Adminhtml_Facebuttons extends Mage_Adminhtml_Block_S
|
|
38 |
*/
|
39 |
protected $_selectRenderer;
|
40 |
|
41 |
-
/**
|
42 |
-
* Check if columns are defined, set template
|
43 |
-
*
|
44 |
-
*/
|
45 |
-
public function __construct()
|
46 |
-
{
|
47 |
-
if (!$this->_addButtonLabel) {
|
48 |
-
$this->_addButtonLabel = Mage::helper('adminhtml')->__('Add');
|
49 |
-
}
|
50 |
-
if (!$this->getTemplate()) {
|
51 |
-
$this->setTemplate('system/config/form/field/array.phtml');
|
52 |
-
}
|
53 |
-
}
|
54 |
-
|
55 |
/**
|
56 |
* Retrieve checkbox column renderer
|
57 |
*
|
@@ -96,23 +69,6 @@ class Social_Facebook_Block_Adminhtml_Facebuttons extends Mage_Adminhtml_Block_S
|
|
96 |
$this->_addButtonLabel = Mage::helper('social_facebook')->__('Add Action Button');
|
97 |
}
|
98 |
|
99 |
-
/**
|
100 |
-
* Render block HTML
|
101 |
-
*
|
102 |
-
* @return string
|
103 |
-
*/
|
104 |
-
protected function _toHtml()
|
105 |
-
{
|
106 |
-
if (!$this->_isPreparedToRender) {
|
107 |
-
$this->_prepareToRender();
|
108 |
-
$this->_isPreparedToRender = true;
|
109 |
-
}
|
110 |
-
if (empty($this->_columns)) {
|
111 |
-
throw new Exception('At least one column must be defined.');
|
112 |
-
}
|
113 |
-
return parent::_toHtml();
|
114 |
-
}
|
115 |
-
|
116 |
/**
|
117 |
* Prepare existing row data object
|
118 |
*
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
*
|
15 |
+
* @category Social
|
16 |
+
* @package Social_Facebook
|
17 |
+
* @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
class Social_Facebook_Block_Adminhtml_Facebuttons extends Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract
|
22 |
{
|
23 |
/**
|
25 |
*/
|
26 |
protected $_selectRenderer;
|
27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
/**
|
29 |
* Retrieve checkbox column renderer
|
30 |
*
|
69 |
$this->_addButtonLabel = Mage::helper('social_facebook')->__('Add Action Button');
|
70 |
}
|
71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
/**
|
73 |
* Prepare existing row data object
|
74 |
*
|
app/code/community/Social/Facebook/Block/Adminhtml/Select.php
CHANGED
@@ -12,25 +12,12 @@
|
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
*
|
15 |
-
*
|
16 |
-
*
|
17 |
-
*
|
18 |
-
* versions in the future. If you wish to customize Magento for your
|
19 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
-
*
|
21 |
-
* @category Mage
|
22 |
-
* @package Mage_Adminhtml
|
23 |
-
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
27 |
-
/**
|
28 |
-
* Adminhtml system config array field renderer
|
29 |
-
*
|
30 |
-
* @category Mage
|
31 |
-
* @package Mage_Adminhtml
|
32 |
-
* @author Magento Core Team <core@magentocommerce.com>
|
33 |
-
*/
|
34 |
class Social_Facebook_Block_Adminhtml_Select extends Mage_Core_Block_Html_Select
|
35 |
{
|
36 |
protected $_options = array();
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
*
|
15 |
+
* @category Social
|
16 |
+
* @package Social_Facebook
|
17 |
+
* @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
class Social_Facebook_Block_Adminhtml_Select extends Mage_Core_Block_Html_Select
|
22 |
{
|
23 |
protected $_options = array();
|
app/code/community/Social/Facebook/Block/Like.php
CHANGED
@@ -14,9 +14,10 @@
|
|
14 |
*
|
15 |
* @category Social
|
16 |
* @package Social_Facebook
|
17 |
-
* @copyright Copyright (c)
|
18 |
-
* @license http://
|
19 |
*/
|
|
|
20 |
class Social_Facebook_Block_Like extends Mage_Core_Block_Template
|
21 |
{
|
22 |
|
14 |
*
|
15 |
* @category Social
|
16 |
* @package Social_Facebook
|
17 |
+
* @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
+
|
21 |
class Social_Facebook_Block_Like extends Mage_Core_Block_Template
|
22 |
{
|
23 |
|
app/code/community/Social/Facebook/Model/Facebook.php
CHANGED
@@ -213,13 +213,11 @@ class Social_Facebook_Model_Facebook extends Mage_Core_Model_Abstract
|
|
213 |
}
|
214 |
} catch (Mage_Core_Exception $e) {
|
215 |
Mage::getSingleton('core/session')->addError($e->getMessage());
|
216 |
-
$this->removeSessionApi();
|
217 |
} catch (Exception $e) {
|
218 |
Mage::getSingleton('core/session')->addError(
|
219 |
Mage::helper('social_facebook')->__('Cannot Get Facebook Access Token')
|
220 |
);
|
221 |
Mage::logException($e);
|
222 |
-
$this->removeSessionApi();
|
223 |
}
|
224 |
|
225 |
if (!empty($this->_accessToken)) {
|
@@ -231,7 +229,8 @@ class Social_Facebook_Model_Facebook extends Mage_Core_Model_Abstract
|
|
231 |
}
|
232 |
return $this->_accessToken;
|
233 |
} else {
|
234 |
-
$
|
|
|
235 |
return false;
|
236 |
}
|
237 |
}
|
@@ -250,14 +249,12 @@ class Social_Facebook_Model_Facebook extends Mage_Core_Model_Abstract
|
|
250 |
$action = $this->getApi()->sendFacebookAction();
|
251 |
} catch (Mage_Core_Exception $e) {
|
252 |
Mage::getSingleton('core/session')->addError($e->getMessage());
|
253 |
-
$this->removeSessionApi();
|
254 |
} catch (Exception $e) {
|
255 |
$action = Mage::getSingleton('core/session')->getData('facebook_action');
|
256 |
Mage::getSingleton('core/session')->addError(
|
257 |
Mage::helper('social_facebook')->__('Cannot Make "%s" Action. Please, try later.', $action)
|
258 |
);
|
259 |
Mage::logException($e);
|
260 |
-
$this->removeSessionApi();
|
261 |
}
|
262 |
|
263 |
return $action;
|
@@ -277,13 +274,11 @@ class Social_Facebook_Model_Facebook extends Mage_Core_Model_Abstract
|
|
277 |
$friends = $this->getApi()->getFacebookFriends();
|
278 |
} catch (Mage_Core_Exception $e) {
|
279 |
Mage::getSingleton('core/session')->addError($e->getMessage());
|
280 |
-
$this->removeSessionApi();
|
281 |
} catch (Exception $e) {
|
282 |
Mage::getSingleton('core/session')->addError(
|
283 |
Mage::helper('social_facebook')->__('Cannot Get Your Facebook Friends')
|
284 |
);
|
285 |
Mage::logException($e);
|
286 |
-
$this->removeSessionApi();
|
287 |
}
|
288 |
|
289 |
return $friends;
|
@@ -307,13 +302,11 @@ class Social_Facebook_Model_Facebook extends Mage_Core_Model_Abstract
|
|
307 |
}
|
308 |
} catch (Mage_Core_Exception $e) {
|
309 |
Mage::getSingleton('core/session')->addError($e->getMessage());
|
310 |
-
$this->removeSessionApi();
|
311 |
} catch (Exception $e) {
|
312 |
Mage::getSingleton('core/session')->addError(
|
313 |
Mage::helper('social_facebook')->__('Cannot Get Facebook User')
|
314 |
);
|
315 |
Mage::logException($e);
|
316 |
-
$this->removeSessionApi();
|
317 |
}
|
318 |
|
319 |
return $user;
|
213 |
}
|
214 |
} catch (Mage_Core_Exception $e) {
|
215 |
Mage::getSingleton('core/session')->addError($e->getMessage());
|
|
|
216 |
} catch (Exception $e) {
|
217 |
Mage::getSingleton('core/session')->addError(
|
218 |
Mage::helper('social_facebook')->__('Cannot Get Facebook Access Token')
|
219 |
);
|
220 |
Mage::logException($e);
|
|
|
221 |
}
|
222 |
|
223 |
if (!empty($this->_accessToken)) {
|
229 |
}
|
230 |
return $this->_accessToken;
|
231 |
} else {
|
232 |
+
$session->unsetData('access_token');
|
233 |
+
$session->unsetData('facebook_action');
|
234 |
return false;
|
235 |
}
|
236 |
}
|
249 |
$action = $this->getApi()->sendFacebookAction();
|
250 |
} catch (Mage_Core_Exception $e) {
|
251 |
Mage::getSingleton('core/session')->addError($e->getMessage());
|
|
|
252 |
} catch (Exception $e) {
|
253 |
$action = Mage::getSingleton('core/session')->getData('facebook_action');
|
254 |
Mage::getSingleton('core/session')->addError(
|
255 |
Mage::helper('social_facebook')->__('Cannot Make "%s" Action. Please, try later.', $action)
|
256 |
);
|
257 |
Mage::logException($e);
|
|
|
258 |
}
|
259 |
|
260 |
return $action;
|
274 |
$friends = $this->getApi()->getFacebookFriends();
|
275 |
} catch (Mage_Core_Exception $e) {
|
276 |
Mage::getSingleton('core/session')->addError($e->getMessage());
|
|
|
277 |
} catch (Exception $e) {
|
278 |
Mage::getSingleton('core/session')->addError(
|
279 |
Mage::helper('social_facebook')->__('Cannot Get Your Facebook Friends')
|
280 |
);
|
281 |
Mage::logException($e);
|
|
|
282 |
}
|
283 |
|
284 |
return $friends;
|
302 |
}
|
303 |
} catch (Mage_Core_Exception $e) {
|
304 |
Mage::getSingleton('core/session')->addError($e->getMessage());
|
|
|
305 |
} catch (Exception $e) {
|
306 |
Mage::getSingleton('core/session')->addError(
|
307 |
Mage::helper('social_facebook')->__('Cannot Get Facebook User')
|
308 |
);
|
309 |
Mage::logException($e);
|
|
|
310 |
}
|
311 |
|
312 |
return $user;
|
app/code/community/Social/Facebook/Model/{Mysql4 → Resource}/Facebook.php
RENAMED
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Magento
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
7 |
-
* This source file is subject to the
|
8 |
-
* that is bundled with this package in the file
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to license@magentocommerce.com so we can send you a copy immediately.
|
@@ -21,7 +21,7 @@
|
|
21 |
* @category Social
|
22 |
* @package Social_Facebook
|
23 |
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
-
* @license http://
|
25 |
*/
|
26 |
|
27 |
/**
|
@@ -31,7 +31,7 @@
|
|
31 |
* @package Social_Facebook
|
32 |
* @author Magento Core Team <core@magentocommerce.com>
|
33 |
*/
|
34 |
-
class
|
35 |
{
|
36 |
/**
|
37 |
* Internal constructor
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Magento
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
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://opensource.org/licenses/osl-3.0.php
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to license@magentocommerce.com so we can send you a copy immediately.
|
21 |
* @category Social
|
22 |
* @package Social_Facebook
|
23 |
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
27 |
/**
|
31 |
* @package Social_Facebook
|
32 |
* @author Magento Core Team <core@magentocommerce.com>
|
33 |
*/
|
34 |
+
class Social_Facebook_Model_Resource_Facebook extends Mage_Core_Model_Resource_Db_Abstract
|
35 |
{
|
36 |
/**
|
37 |
* Internal constructor
|
app/code/community/Social/Facebook/Model/{Mysql4 → Resource}/Facebook/Collection.php
RENAMED
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Magento
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
7 |
-
* This source file is subject to the
|
8 |
-
* that is bundled with this package in the file
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to license@magentocommerce.com so we can send you a copy immediately.
|
@@ -21,7 +21,7 @@
|
|
21 |
* @category Social
|
22 |
* @package Social_Facebook
|
23 |
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
-
* @license http://
|
25 |
*/
|
26 |
|
27 |
/**
|
@@ -31,8 +31,8 @@
|
|
31 |
* @package Social_Facebook
|
32 |
* @author Magento Core Team <core@magentocommerce.com>
|
33 |
*/
|
34 |
-
class
|
35 |
-
extends
|
36 |
{
|
37 |
/**
|
38 |
* Internal constructor
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Magento
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
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://opensource.org/licenses/osl-3.0.php
|
11 |
* If you did not receive a copy of the license and are unable to
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
* to license@magentocommerce.com so we can send you a copy immediately.
|
21 |
* @category Social
|
22 |
* @package Social_Facebook
|
23 |
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
27 |
/**
|
31 |
* @package Social_Facebook
|
32 |
* @author Magento Core Team <core@magentocommerce.com>
|
33 |
*/
|
34 |
+
class Social_Facebook_Model_Resource_Facebook_Collection
|
35 |
+
extends Mage_Core_Model_Resource_Db_Collection_Abstract
|
36 |
{
|
37 |
/**
|
38 |
* Internal constructor
|
app/code/community/Social/Facebook/{sql/social_facebook_setup/mysql4-install-1.4.0.php → Model/Resource/Setup.php}
RENAMED
@@ -23,20 +23,13 @@
|
|
23 |
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
-
/* @var $installer Mage_Core_Model_Resource_Setup */
|
27 |
-
$installer = $this;
|
28 |
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
PRIMARY KEY (`entity_id`)
|
39 |
-
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Social Facebook Actions';
|
40 |
-
");
|
41 |
-
|
42 |
-
$installer->endSetup();
|
23 |
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
|
|
|
|
26 |
|
27 |
+
/**
|
28 |
+
* Facebook module setup
|
29 |
+
*
|
30 |
+
* @category Social
|
31 |
+
* @package Social_Facebook
|
32 |
+
*/
|
33 |
+
class Social_Facebook_Model_Resource_Setup extends Mage_Catalog_Model_Resource_Setup
|
34 |
+
{
|
35 |
+
}
|
|
|
|
|
|
|
|
|
|
app/code/community/Social/Facebook/etc/adminhtml.xml
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Magento
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/afl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
19 |
+
* versions in the future. If you wish to customize Magento for your
|
20 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
21 |
+
*
|
22 |
+
* @category Social
|
23 |
+
* @package Social_Facebook
|
24 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
25 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
26 |
+
*/
|
27 |
+
-->
|
28 |
+
<config>
|
29 |
+
<acl>
|
30 |
+
<resources>
|
31 |
+
<admin>
|
32 |
+
<children>
|
33 |
+
<system>
|
34 |
+
<children>
|
35 |
+
<config>
|
36 |
+
<children>
|
37 |
+
<facebook module="social_facebook" translate="title">
|
38 |
+
<title>Facebook Section</title>
|
39 |
+
<sort_order>75</sort_order>
|
40 |
+
</facebook>
|
41 |
+
</children>
|
42 |
+
</config>
|
43 |
+
</children>
|
44 |
+
</system>
|
45 |
+
</children>
|
46 |
+
</admin>
|
47 |
+
</resources>
|
48 |
+
</acl>
|
49 |
+
</config>
|
app/code/community/Social/Facebook/etc/config.xml
CHANGED
@@ -28,43 +28,31 @@
|
|
28 |
<config>
|
29 |
<modules>
|
30 |
<Social_Facebook>
|
31 |
-
<version>1.
|
32 |
</Social_Facebook>
|
33 |
</modules>
|
34 |
<global>
|
35 |
<models>
|
36 |
<social_facebook>
|
37 |
<class>Social_Facebook_Model</class>
|
38 |
-
<resourceModel>
|
39 |
</social_facebook>
|
40 |
-
<
|
41 |
-
<class>
|
42 |
<entities>
|
43 |
<facebook>
|
44 |
<table>social_facebook_actions</table>
|
45 |
</facebook>
|
46 |
</entities>
|
47 |
-
</
|
48 |
</models>
|
49 |
<resources>
|
50 |
<social_facebook_setup>
|
51 |
<setup>
|
52 |
<module>Social_Facebook</module>
|
|
|
53 |
</setup>
|
54 |
-
<connection>
|
55 |
-
<use>core_setup</use>
|
56 |
-
</connection>
|
57 |
</social_facebook_setup>
|
58 |
-
<social_facebook_write>
|
59 |
-
<connection>
|
60 |
-
<use>core_write</use>
|
61 |
-
</connection>
|
62 |
-
</social_facebook_write>
|
63 |
-
<social_facebook_read>
|
64 |
-
<connection>
|
65 |
-
<use>core_read</use>
|
66 |
-
</connection>
|
67 |
-
</social_facebook_read>
|
68 |
</resources>
|
69 |
<blocks>
|
70 |
<social_facebook>
|
@@ -96,26 +84,6 @@
|
|
96 |
</social_facebook>
|
97 |
</updates>
|
98 |
</layout>
|
99 |
-
<acl>
|
100 |
-
<resources>
|
101 |
-
<admin>
|
102 |
-
<children>
|
103 |
-
<system>
|
104 |
-
<children>
|
105 |
-
<config>
|
106 |
-
<children>
|
107 |
-
<facebook module="social_facebook" translate="title">
|
108 |
-
<title>Facebook Section</title>
|
109 |
-
<sort_order>75</sort_order>
|
110 |
-
</facebook>yo
|
111 |
-
</children>
|
112 |
-
</config>
|
113 |
-
</children>
|
114 |
-
</system>
|
115 |
-
</children>
|
116 |
-
</admin>
|
117 |
-
</resources>
|
118 |
-
</acl>
|
119 |
</adminhtml>
|
120 |
<frontend>
|
121 |
<layout>
|
28 |
<config>
|
29 |
<modules>
|
30 |
<Social_Facebook>
|
31 |
+
<version>1.6.0.1</version>
|
32 |
</Social_Facebook>
|
33 |
</modules>
|
34 |
<global>
|
35 |
<models>
|
36 |
<social_facebook>
|
37 |
<class>Social_Facebook_Model</class>
|
38 |
+
<resourceModel>social_facebook_resource</resourceModel>
|
39 |
</social_facebook>
|
40 |
+
<social_facebook_resource>
|
41 |
+
<class>Social_Facebook_Model_Resource</class>
|
42 |
<entities>
|
43 |
<facebook>
|
44 |
<table>social_facebook_actions</table>
|
45 |
</facebook>
|
46 |
</entities>
|
47 |
+
</social_facebook_resource>
|
48 |
</models>
|
49 |
<resources>
|
50 |
<social_facebook_setup>
|
51 |
<setup>
|
52 |
<module>Social_Facebook</module>
|
53 |
+
<class>Social_Facebook_Model_Resource_Setup</class>
|
54 |
</setup>
|
|
|
|
|
|
|
55 |
</social_facebook_setup>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
</resources>
|
57 |
<blocks>
|
58 |
<social_facebook>
|
84 |
</social_facebook>
|
85 |
</updates>
|
86 |
</layout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
</adminhtml>
|
88 |
<frontend>
|
89 |
<layout>
|
app/code/community/Social/Facebook/etc/system.xml
CHANGED
@@ -33,15 +33,15 @@
|
|
33 |
</social>
|
34 |
</tabs>
|
35 |
<sections>
|
36 |
-
|
37 |
<label>Facebook</label>
|
38 |
<tab>social</tab>
|
39 |
<sort_order>100</sort_order>
|
40 |
<show_in_default>1</show_in_default>
|
41 |
<show_in_website>1</show_in_website>
|
42 |
<show_in_store>1</show_in_store>
|
43 |
-
|
44 |
-
|
45 |
<label>Facebook Config</label>
|
46 |
<frontend_type>text</frontend_type>
|
47 |
<sort_order>10</sort_order>
|
33 |
</social>
|
34 |
</tabs>
|
35 |
<sections>
|
36 |
+
<facebook translate="label" module="social_facebook">
|
37 |
<label>Facebook</label>
|
38 |
<tab>social</tab>
|
39 |
<sort_order>100</sort_order>
|
40 |
<show_in_default>1</show_in_default>
|
41 |
<show_in_website>1</show_in_website>
|
42 |
<show_in_store>1</show_in_store>
|
43 |
+
<groups>
|
44 |
+
<config translate="label">
|
45 |
<label>Facebook Config</label>
|
46 |
<frontend_type>text</frontend_type>
|
47 |
<sort_order>10</sort_order>
|
app/code/community/Social/Facebook/sql/social_facebook_setup/install-1.6.0.0.php
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
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://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category Social
|
22 |
+
* @package Social_Facebook
|
23 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
+
*/
|
26 |
+
|
27 |
+
/** @var $installer Social_Facebook_Model_Resource_Setup */
|
28 |
+
$installer = $this;
|
29 |
+
|
30 |
+
/**
|
31 |
+
* Create table 'social_facebook/facebook'
|
32 |
+
*/
|
33 |
+
$table = $installer->getConnection()
|
34 |
+
->newTable($installer->getTable('social_facebook/facebook'))
|
35 |
+
->addColumn('entity_id', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
|
36 |
+
'identity' => true,
|
37 |
+
'unsigned' => true,
|
38 |
+
'nullable' => false,
|
39 |
+
'primary' => true,
|
40 |
+
), 'Entity Id')
|
41 |
+
->addColumn('facebook_id', Varien_Db_Ddl_Table::TYPE_TEXT, 100, array(
|
42 |
+
'nullable' => false,
|
43 |
+
), 'Facebook User Id')
|
44 |
+
->addColumn('facebook_name', Varien_Db_Ddl_Table::TYPE_TEXT, 100, array(
|
45 |
+
'nullable' => false,
|
46 |
+
), 'Facebook User Name')
|
47 |
+
->addColumn('facebook_action', Varien_Db_Ddl_Table::TYPE_SMALLINT, 5, array(
|
48 |
+
'unsigned' => true,
|
49 |
+
'nullable' => false,
|
50 |
+
), 'User Action')
|
51 |
+
->addColumn('item_id', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
|
52 |
+
'unsigned' => true,
|
53 |
+
'nullable' => false,
|
54 |
+
), 'Product Id')
|
55 |
+
->setComment('Social Facebook Actions');
|
56 |
+
$installer->getConnection()->createTable($table);
|
app/code/community/Social/Facebook/sql/social_facebook_setup/{mysql4-upgrade-1.4.0-1.4.0.1.php → upgrade-1.6.0.0-1.6.0.1.php}
RENAMED
@@ -18,24 +18,22 @@
|
|
18 |
* versions in the future. If you wish to customize Magento for your
|
19 |
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
*
|
21 |
-
* @category
|
22 |
-
* @package
|
23 |
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
|
|
27 |
$installer = $this;
|
28 |
-
/* @var $installer Mage_Core_Model_Resource_Setup */
|
29 |
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
$installer->endSetup();
|
18 |
* versions in the future. If you wish to customize Magento for your
|
19 |
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
*
|
21 |
+
* @category Social
|
22 |
+
* @package Social_Facebook
|
23 |
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
*/
|
26 |
|
27 |
+
/** @var $installer Social_Facebook_Model_Resource_Setup */
|
28 |
$installer = $this;
|
|
|
29 |
|
30 |
+
$installer->getConnection()->modifyColumn(
|
31 |
+
$installer->getTable('social_facebook/facebook'),
|
32 |
+
'facebook_action',
|
33 |
+
array(
|
34 |
+
'type' => Varien_Db_Ddl_Table::TYPE_TEXT,
|
35 |
+
'length' => 100,
|
36 |
+
'nullable' => false,
|
37 |
+
'comment' => 'User Action'
|
38 |
+
)
|
39 |
+
);
|
|
|
|
app/design/frontend/base/default/layout/facebook.xml
CHANGED
@@ -25,43 +25,35 @@
|
|
25 |
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
26 |
*/
|
27 |
-->
|
28 |
-
<layout version="1.0.0">
|
29 |
<!--
|
30 |
Product view
|
31 |
-->
|
32 |
-
<catalog_product_view>
|
33 |
<reference name="head">
|
34 |
<action method="addCss"><stylesheet>css/facebook.css</stylesheet></action>
|
35 |
</reference>
|
36 |
-
<reference name="
|
37 |
-
<
|
38 |
-
<
|
39 |
-
|
40 |
-
|
41 |
-
<block type="social_facebook/box" name="social_facebook_box" as="social_facebook_box" template="social/facebook/box.phtml" />
|
42 |
-
</block>
|
43 |
-
</reference>
|
44 |
-
</reference>
|
45 |
</reference>
|
46 |
</catalog_product_view>
|
47 |
|
48 |
-
<review_product_list>
|
49 |
<reference name="head">
|
50 |
<action method="addCss"><stylesheet>css/facebook.css</stylesheet></action>
|
51 |
</reference>
|
52 |
-
<reference name="
|
53 |
-
<
|
54 |
-
<
|
55 |
-
|
56 |
-
|
57 |
-
<block type="social_facebook/box" name="social_facebook_box" as="social_facebook_box" template="social/facebook/box.phtml" />
|
58 |
-
</block>
|
59 |
-
</reference>
|
60 |
-
</reference>
|
61 |
</reference>
|
62 |
</review_product_list>
|
63 |
|
64 |
-
<facebook_index_page>
|
65 |
<block type="social_facebook/head" name="social_facebook_head" template="social/facebook/page.phtml" />
|
66 |
</facebook_index_page>
|
67 |
</layout>
|
25 |
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
26 |
*/
|
27 |
-->
|
28 |
+
<layout version="1.0.0.0">
|
29 |
<!--
|
30 |
Product view
|
31 |
-->
|
32 |
+
<catalog_product_view translate="label">
|
33 |
<reference name="head">
|
34 |
<action method="addCss"><stylesheet>css/facebook.css</stylesheet></action>
|
35 |
</reference>
|
36 |
+
<reference name="product.info.extrahint">
|
37 |
+
<block type="social_facebook/start" name="social_facebook_start" >
|
38 |
+
<block type="social_facebook/action" name="social_facebook_action" as="social_facebook_action" template="social/facebook/action.phtml" />
|
39 |
+
<block type="social_facebook/box" name="social_facebook_box" as="social_facebook_box" template="social/facebook/box.phtml" />
|
40 |
+
</block>
|
|
|
|
|
|
|
|
|
41 |
</reference>
|
42 |
</catalog_product_view>
|
43 |
|
44 |
+
<review_product_list translate="label">
|
45 |
<reference name="head">
|
46 |
<action method="addCss"><stylesheet>css/facebook.css</stylesheet></action>
|
47 |
</reference>
|
48 |
+
<reference name="product.info.extrahint">
|
49 |
+
<block type="social_facebook/start" name="social_facebook_start" >
|
50 |
+
<block type="social_facebook/action" name="social_facebook_action" as="social_facebook_action" template="social/facebook/action.phtml" />
|
51 |
+
<block type="social_facebook/box" name="social_facebook_box" as="social_facebook_box" template="social/facebook/box.phtml" />
|
52 |
+
</block>
|
|
|
|
|
|
|
|
|
53 |
</reference>
|
54 |
</review_product_list>
|
55 |
|
56 |
+
<facebook_index_page translate="label">
|
57 |
<block type="social_facebook/head" name="social_facebook_head" template="social/facebook/page.phtml" />
|
58 |
</facebook_index_page>
|
59 |
</layout>
|
app/design/frontend/base/default/template/social/facebook/box.phtml~
DELETED
@@ -1,55 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Magento
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
-
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/afl-3.0.php
|
11 |
-
* If you did not receive a copy of the license and are unable to
|
12 |
-
* obtain it through the world-wide-web, please send an email
|
13 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
-
*
|
15 |
-
* DISCLAIMER
|
16 |
-
*
|
17 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
-
* versions in the future. If you wish to customize Magento for your
|
19 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
-
*
|
21 |
-
* @category design
|
22 |
-
* @package base_default
|
23 |
-
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
-
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
-
*/
|
26 |
-
|
27 |
-
/** @var $this Social_Facebook_Block_Box */
|
28 |
-
$actions = $this->getAllActions();
|
29 |
-
?>
|
30 |
-
<?php if (!empty($actions)): ?>
|
31 |
-
<?php foreach ($actions as $action): ?>
|
32 |
-
<?php if ($action['box'] == 0): ?>
|
33 |
-
<?php continue; ?>
|
34 |
-
<?php endif; ?>
|
35 |
-
<div class="facebookFriendsBox">
|
36 |
-
<div>
|
37 |
-
<?php if ($this->getCountOfUsers($action['action']) == 1): ?>
|
38 |
-
1 user <?php echo $this->htmlEscape($action['action']) ?>s this product
|
39 |
-
<?php else: ?>
|
40 |
-
<?php echo $this->getCountOfUsers($action['action'])?> users <?php echo $this->htmlEscape($action['action']) ?> this product
|
41 |
-
<?php endif; ?>
|
42 |
-
</div>
|
43 |
-
<div style="clear:both;"></div>
|
44 |
-
<?php foreach($this->getFriendBox($action['action']) as $user): ?>
|
45 |
-
<div class="facebookUser">
|
46 |
-
<img border="0" src="http://graph.facebook.com/<?php echo $user['facebook_id']?>/picture" alt="<?php $this->htmlEscape($user['facebook_name'])?>" title="<?php $this->htmlEscape($user['facebook_name'])?>">
|
47 |
-
<span title="<?php echo $this->escapeHtml($user['facebook_name'])?>"><?php echo $this->escapeHtml($user['facebook_name'])?></span>
|
48 |
-
</div>
|
49 |
-
<?php endforeach; ?>
|
50 |
-
<div style="clear:both;"></div>
|
51 |
-
</div>
|
52 |
-
<div class="facebookZeroBox"></div>
|
53 |
-
<?php endforeach; ?>
|
54 |
-
<div style="clear:both;"></div>
|
55 |
-
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Social_Facebook</name>
|
4 |
-
<version>1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Facebook Open Graph 2.0 Extension for Magento</summary>
|
10 |
<description>Facebook Open Graph 2.0 extension provides you with possibility to add new social buttons to your store. The extension uses the brand new Facebook Open Graph 2.0 protocol and allows adding the “Want” and “I own this” Facebook buttons on your product pages.</description>
|
11 |
-
<notes>Facebook Open Graph 2.0 extension is compatible with Magento Enterprise Edition and Professional Edition 1.
|
12 |
-
<authors><author><name>Magento Core Team</name><user>
|
13 |
-
<date>2011-10-
|
14 |
-
<time>
|
15 |
-
<contents><target name="
|
16 |
<compatible/>
|
17 |
-
<dependencies
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Social_Facebook</name>
|
4 |
+
<version>1.6.0.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Facebook Open Graph 2.0 Extension for Magento</summary>
|
10 |
<description>Facebook Open Graph 2.0 extension provides you with possibility to add new social buttons to your store. The extension uses the brand new Facebook Open Graph 2.0 protocol and allows adding the “Want” and “I own this” Facebook buttons on your product pages.</description>
|
11 |
+
<notes>Facebook Open Graph 2.0 extension is compatible with Magento Enterprise Edition and Professional Edition 1.11 or later, and Magento Community Edition 1.6 or later.</notes>
|
12 |
+
<authors><author><name>Magento Core Team</name><user>core</user><email>core@magentocommerce.com</email></author></authors>
|
13 |
+
<date>2011-10-21</date>
|
14 |
+
<time>11:33:22</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Social"><dir name="Facebook"><dir name="Block"><file name="Action.php" hash="2a195319b750004552da18e082cb8184"/><dir name="Adminhtml"><file name="Facebuttons.php" hash="d73d32ba2b900e00e9705608b203b502"/><file name="Select.php" hash="036c43ac96033cf26c32e14884b83a6b"/></dir><file name="Box.php" hash="516adc472c9bf244cc4e1bfaa9c72969"/><file name="Head.php" hash="dbb35ead2ed9b6444e552335efd678e4"/><file name="Like.php" hash="3d1eb6c1c4f0e1dafdd1f90bdf54183e"/><file name="Start.php" hash="2e61c7814dc9c7c23d34c1e8ed74c518"/></dir><dir name="Helper"><file name="Data.php" hash="4997be7dfb07b5967ddc3d783c7c3ade"/></dir><dir name="Model"><file name="Api.php" hash="52c453a2fe92e84efbbe63a3eea63d6a"/><file name="Facebook.php" hash="8b6e4f4cecabe9bb247cf28b6bf5b111"/><file name="Facebuttons.php" hash="f15aa66ba13f5977adf09b067f0fa3d9"/><file name="Observer.php" hash="168c3c3a9ae234f7f491bbf654e83d91"/><dir name="Resource"><dir name="Facebook"><file name="Collection.php" hash="7e472319938814bf68d221bb1c40f294"/></dir><file name="Facebook.php" hash="ee24ca1592576f75404e6e99f9f91dd6"/><file name="Setup.php" hash="53e978ad7976c17ea9dab84b65217d79"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="da8bfd193c2cc8087bf2db946504d2b6"/></dir><dir name="etc"><file name="adminhtml.xml" hash="a32cfb60ca4d8a576ae086635318c704"/><file name="config.xml" hash="b29ba65fd8f8db796d1d67b4a8d68d01"/><file name="system.xml" hash="5e210bbfaa8e0dab376cc7a9ee52eedb"/></dir><dir name="sql"><dir name="social_facebook_setup"><file name="install-1.6.0.0.php" hash="e9b71dc811c2c510fc25a72beb928dea"/><file name="upgrade-1.6.0.0-1.6.0.1.php" hash="222c31c400b9632c561f6b147e28f6de"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="facebook.xml" hash="0b92f70f22ec1006f92ce0b311016d68"/></dir><dir name="template"><dir name="social"><dir name="facebook"><file name="action.phtml" hash="9d12c6e116652f0fc5bf5b516e07b0af"/><file name="box.phtml" hash="2ca758ee05423fad428770ca47e33384"/><file name="empty.phtml" hash="9c3bd6e1a1361c0e64cac4c78426b069"/><file name="page.phtml" hash="81bef9f0829d6b5718f8aecc3dd5a88f"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Social_Facebook.xml" hash="b15af76b10945d00b8dbad23aebc0f50"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="facebook.css" hash="d853a1b4898845560765dae8e5a77248"/></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
skin/frontend/base/default/css/facebook.css
CHANGED
@@ -30,10 +30,10 @@
|
|
30 |
width: 16px;
|
31 |
}
|
32 |
.facebookBtn {
|
33 |
-
margin:
|
34 |
-
padding:
|
35 |
-
text-align:
|
36 |
-
background-color
|
37 |
border: 1px solid #CAD4E7;
|
38 |
border-radius: 3px 3px 3px 3px;
|
39 |
display: block;
|
@@ -48,22 +48,22 @@
|
|
48 |
.facebookFriendsBox {
|
49 |
background: url("../images/bkg_page-title.gif");
|
50 |
border: 1px solid #CFCFCF;
|
51 |
-
padding:
|
52 |
border-radius: 5px;
|
53 |
-
height:
|
54 |
-
overflow:
|
55 |
-
float:
|
56 |
-
margin:
|
57 |
}
|
58 |
.facebookZeroBox {
|
59 |
-
float:
|
60 |
-
margin:
|
61 |
}
|
62 |
.facebookUser {
|
63 |
-
text-align:
|
64 |
-
width:
|
65 |
-
height:
|
66 |
-
padding-top:
|
67 |
-
overflow:
|
68 |
-
float:
|
69 |
}
|
30 |
width: 16px;
|
31 |
}
|
32 |
.facebookBtn {
|
33 |
+
margin:1px 10px 10px 0;
|
34 |
+
padding:4px 5px 4px 6px;
|
35 |
+
text-align:center;
|
36 |
+
background-color:#ECEEF5;
|
37 |
border: 1px solid #CAD4E7;
|
38 |
border-radius: 3px 3px 3px 3px;
|
39 |
display: block;
|
48 |
.facebookFriendsBox {
|
49 |
background: url("../images/bkg_page-title.gif");
|
50 |
border: 1px solid #CFCFCF;
|
51 |
+
padding:5px;
|
52 |
border-radius: 5px;
|
53 |
+
height:95px;
|
54 |
+
overflow:hidden;
|
55 |
+
float:left;
|
56 |
+
margin:10px -10px 10px -10px;
|
57 |
}
|
58 |
.facebookZeroBox {
|
59 |
+
float:left;
|
60 |
+
margin:15px;
|
61 |
}
|
62 |
.facebookUser {
|
63 |
+
text-align:center;
|
64 |
+
width:65px;
|
65 |
+
height:80px;
|
66 |
+
padding-top:5px;
|
67 |
+
overflow:hidden;
|
68 |
+
float:left;"
|
69 |
}
|