Version Notes
Download from magento connect or go to my site to download this extensions
Download this release
Release Info
| Developer | Magefox |
| Extension | Magefox_Facebooklikebox |
| Version | 0.1.0 |
| Comparing to | |
| See all releases | |
Version 0.1.0
- app/code/community/Magefox/Facebooklikebox/.DS_Store +0 -0
- app/code/community/Magefox/Facebooklikebox/Block/.DS_Store +0 -0
- app/code/community/Magefox/Facebooklikebox/Block/Likebox.php +38 -0
- app/code/community/Magefox/Facebooklikebox/Helper/Data.php +21 -0
- app/code/community/Magefox/Facebooklikebox/Model/.DS_Store +0 -0
- app/code/community/Magefox/Facebooklikebox/Model/System/.DS_Store +0 -0
- app/code/community/Magefox/Facebooklikebox/Model/System/Config/.DS_Store +0 -0
- app/code/community/Magefox/Facebooklikebox/Model/System/Config/Position.php +22 -0
- app/code/community/Magefox/Facebooklikebox/etc/adminhtml.xml +70 -0
- app/code/community/Magefox/Facebooklikebox/etc/config.xml +115 -0
- app/code/community/Magefox/Facebooklikebox/etc/system.xml +120 -0
- app/design/frontend/default/default/layout/facebooklikebox.xml +38 -0
- app/design/frontend/default/default/template/facebooklikebox/likebox.phtml +15 -0
- app/etc/modules/Magefox_Facebooklikebox.xml +18 -0
- package.xml +22 -0
app/code/community/Magefox/Facebooklikebox/.DS_Store
ADDED
|
Binary file
|
app/code/community/Magefox/Facebooklikebox/Block/.DS_Store
ADDED
|
Binary file
|
app/code/community/Magefox/Facebooklikebox/Block/Likebox.php
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/******************************************************
|
| 3 |
+
* @package Facebooklikebox module for Magento 1.4.x.x and Magento 1.5.x.x
|
| 4 |
+
* @author http://www.magefox.com
|
| 5 |
+
* @copyright (C) 2011- Magefox.Com
|
| 6 |
+
* @license PHP files are GNU/GPL
|
| 7 |
+
*******************************************************/
|
| 8 |
+
?>
|
| 9 |
+
<?php
|
| 10 |
+
class Magefox_Facebooklikebox_Block_Likebox extends Mage_Core_Block_Template
|
| 11 |
+
{
|
| 12 |
+
public function getStoreConfig($path)
|
| 13 |
+
{
|
| 14 |
+
return Mage::getStoreConfig($path);
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
public function getLikebox()
|
| 18 |
+
{
|
| 19 |
+
$isActive = Mage::helper('facebooklikebox')->isActive();
|
| 20 |
+
$position = Mage::helper('facebooklikebox')->getPosition();
|
| 21 |
+
if($isActive) {
|
| 22 |
+
if ($position == $this->getPosition()) {
|
| 23 |
+
$pageId = $this->getStoreConfig($this->getPageId());
|
| 24 |
+
$width = $this->getStoreConfig($this->getWidth());
|
| 25 |
+
$height = $this->getStoreConfig($this->getHeight());
|
| 26 |
+
$connections = $this->getStoreConfig($this->getConnection());
|
| 27 |
+
$showHeader = (bool)$this->getStoreConfig($this->getShowHeader());
|
| 28 |
+
$showFace = (bool)$this->getStoreConfig($this->getShowFace());
|
| 29 |
+
$showStream = (bool)$this->getStoreConfig($this->getShowStream());
|
| 30 |
+
return '<iframe src="http://www.facebook.com/connect/connect.php?id='.$pageId.'&locale='.Mage::app()->getLocale()->getLocaleCode().'&connections='.$connections.'&stream='.$showStream.'&header='.$showHeader.'&width='.$width.'" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:'.$width.'px; height:'.$height.'px;" allowTransparency="true"></iframe>';
|
| 31 |
+
} else {
|
| 32 |
+
return null;
|
| 33 |
+
}
|
| 34 |
+
} else {
|
| 35 |
+
return null;
|
| 36 |
+
}
|
| 37 |
+
}
|
| 38 |
+
}
|
app/code/community/Magefox/Facebooklikebox/Helper/Data.php
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/******************************************************
|
| 3 |
+
* @package Facebooklikebox module for Magento 1.4.x.x and Magento 1.5.x.x
|
| 4 |
+
* @author http://www.magefox.com
|
| 5 |
+
* @copyright (C) 2011- Magefox.Com
|
| 6 |
+
* @license PHP files are GNU/GPL
|
| 7 |
+
*******************************************************/
|
| 8 |
+
?>
|
| 9 |
+
<?php
|
| 10 |
+
class Magefox_Facebooklikebox_Helper_Data extends Mage_Core_Helper_Abstract
|
| 11 |
+
{
|
| 12 |
+
public function isActive()
|
| 13 |
+
{
|
| 14 |
+
return Mage::getStoreConfig('facebooklikebox/general/active');
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
public function getPosition()
|
| 18 |
+
{
|
| 19 |
+
return Mage::getStoreConfig('facebooklikebox/general/col_layout');
|
| 20 |
+
}
|
| 21 |
+
}
|
app/code/community/Magefox/Facebooklikebox/Model/.DS_Store
ADDED
|
Binary file
|
app/code/community/Magefox/Facebooklikebox/Model/System/.DS_Store
ADDED
|
Binary file
|
app/code/community/Magefox/Facebooklikebox/Model/System/Config/.DS_Store
ADDED
|
Binary file
|
app/code/community/Magefox/Facebooklikebox/Model/System/Config/Position.php
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/******************************************************
|
| 3 |
+
* @package Facebooklikebox module for Magento 1.4.x.x and Magento 1.5.x.x
|
| 4 |
+
* @author http://www.magefox.com
|
| 5 |
+
* @copyright (C) 2011- Magefox.Com
|
| 6 |
+
* @license PHP files are GNU/GPL
|
| 7 |
+
*******************************************************/
|
| 8 |
+
?>
|
| 9 |
+
<?php
|
| 10 |
+
class Magefox_Facebooklikebox_Model_System_Config_Position extends Varien_Object
|
| 11 |
+
{
|
| 12 |
+
const COL_LEFT = 'left';
|
| 13 |
+
const COL_RIGHT = 'right';
|
| 14 |
+
|
| 15 |
+
public function toOptionArray()
|
| 16 |
+
{
|
| 17 |
+
return array(
|
| 18 |
+
self::COL_LEFT => Mage::helper('facebooklikebox')->__('Col left'),
|
| 19 |
+
self::COL_RIGHT => Mage::helper('facebooklikebox')->__('Col right')
|
| 20 |
+
);
|
| 21 |
+
}
|
| 22 |
+
}
|
app/code/community/Magefox/Facebooklikebox/etc/adminhtml.xml
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<!--
|
| 3 |
+
/******************************************************
|
| 4 |
+
* @package Facebooklikebox module for Magento 1.4.x.x and Magento 1.5.x.x
|
| 5 |
+
* @author http://www.magefox.com
|
| 6 |
+
* @copyright (C) 2011- Magefox.Com
|
| 7 |
+
* @license PHP files are GNU/GPL
|
| 8 |
+
*******************************************************/
|
| 9 |
+
-->
|
| 10 |
+
<config>
|
| 11 |
+
<menu>
|
| 12 |
+
<magefox translate="title" module="facebooklikebox">
|
| 13 |
+
<title>Magefox Extensions</title>
|
| 14 |
+
<sort_order>71</sort_order>
|
| 15 |
+
<children>
|
| 16 |
+
<facebooklikebox translate="title" module="facebooklikebox">
|
| 17 |
+
<title>Facebook Like box</title>
|
| 18 |
+
<sort_order>99</sort_order>
|
| 19 |
+
<children>
|
| 20 |
+
<configuration translate="title" module="facebooklikebox">
|
| 21 |
+
<title>Configuration</title>
|
| 22 |
+
<sort_order>1</sort_order>
|
| 23 |
+
<action>adminhtml/system_config/edit/section/facebooklikebox</action>
|
| 24 |
+
</configuration>
|
| 25 |
+
</children>
|
| 26 |
+
</facebooklikebox>
|
| 27 |
+
</children>
|
| 28 |
+
</magefox>
|
| 29 |
+
</menu>
|
| 30 |
+
<acl>
|
| 31 |
+
<resources>
|
| 32 |
+
<all>
|
| 33 |
+
<title>Allow Everything</title>
|
| 34 |
+
</all>
|
| 35 |
+
<admin>
|
| 36 |
+
<children>
|
| 37 |
+
<system>
|
| 38 |
+
<children>
|
| 39 |
+
<config>
|
| 40 |
+
<children>
|
| 41 |
+
<facebooklikebox translate="title">
|
| 42 |
+
<title>Facebooklikebox Module</title>
|
| 43 |
+
<sort_order>10</sort_order>
|
| 44 |
+
</facebooklikebox>
|
| 45 |
+
</children>
|
| 46 |
+
</config>
|
| 47 |
+
</children>
|
| 48 |
+
</system>
|
| 49 |
+
<magefox translate="title" module="facebooklikebox">
|
| 50 |
+
<title>Magefox Extensions</title>
|
| 51 |
+
<sort_order>71</sort_order>
|
| 52 |
+
<children>
|
| 53 |
+
<facebooklikebox translate="title" module="facebooklikebox">
|
| 54 |
+
<title>Facebook Like box</title>
|
| 55 |
+
<sort_order>99</sort_order>
|
| 56 |
+
<children>
|
| 57 |
+
<configuration translate="title" module="facebooklikebox">
|
| 58 |
+
<title>Configuration</title>
|
| 59 |
+
<sort_order>1</sort_order>
|
| 60 |
+
<action>adminhtml/system_config/edit/section/facebooklikebox</action>
|
| 61 |
+
</configuration>
|
| 62 |
+
</children>
|
| 63 |
+
</facebooklikebox>
|
| 64 |
+
</children>
|
| 65 |
+
</magefox>
|
| 66 |
+
</children>
|
| 67 |
+
</admin>
|
| 68 |
+
</resources>
|
| 69 |
+
</acl>
|
| 70 |
+
</config>
|
app/code/community/Magefox/Facebooklikebox/etc/config.xml
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<!--
|
| 3 |
+
/******************************************************
|
| 4 |
+
* @package Facebooklikebox module for Magento 1.4.x.x and Magento 1.5.x.x
|
| 5 |
+
* @author http://www.magefox.com
|
| 6 |
+
* @copyright (C) 2011- Magefox.Com
|
| 7 |
+
* @license PHP files are GNU/GPL
|
| 8 |
+
*******************************************************/
|
| 9 |
+
-->
|
| 10 |
+
<config>
|
| 11 |
+
<modules>
|
| 12 |
+
<Magefox_Facebooklikebox>
|
| 13 |
+
<version>0.1.0</version>
|
| 14 |
+
</Magefox_Facebooklikebox>
|
| 15 |
+
</modules>
|
| 16 |
+
<frontend>
|
| 17 |
+
<routers>
|
| 18 |
+
<facebooklikebox>
|
| 19 |
+
<use>standard</use>
|
| 20 |
+
<args>
|
| 21 |
+
<module>Magefox_Facebooklikebox</module>
|
| 22 |
+
<frontName>facebooklikebox</frontName>
|
| 23 |
+
</args>
|
| 24 |
+
</facebooklikebox>
|
| 25 |
+
</routers>
|
| 26 |
+
<layout>
|
| 27 |
+
<updates>
|
| 28 |
+
<facebooklikebox>
|
| 29 |
+
<file>facebooklikebox.xml</file>
|
| 30 |
+
</facebooklikebox>
|
| 31 |
+
</updates>
|
| 32 |
+
</layout>
|
| 33 |
+
</frontend>
|
| 34 |
+
<admin>
|
| 35 |
+
<routers>
|
| 36 |
+
<facebooklikebox>
|
| 37 |
+
<use>admin</use>
|
| 38 |
+
<args>
|
| 39 |
+
<module>Magefox_Facebooklikebox</module>
|
| 40 |
+
<frontName>facebooklikebox</frontName>
|
| 41 |
+
</args>
|
| 42 |
+
</facebooklikebox>
|
| 43 |
+
</routers>
|
| 44 |
+
</admin>
|
| 45 |
+
<adminhtml>
|
| 46 |
+
<layout>
|
| 47 |
+
<updates>
|
| 48 |
+
<facebooklikebox>
|
| 49 |
+
<file>facebooklikebox.xml</file>
|
| 50 |
+
</facebooklikebox>
|
| 51 |
+
</updates>
|
| 52 |
+
</layout>
|
| 53 |
+
</adminhtml>
|
| 54 |
+
<global>
|
| 55 |
+
<models>
|
| 56 |
+
<facebooklikebox>
|
| 57 |
+
<class>Magefox_Facebooklikebox_Model</class>
|
| 58 |
+
<resourceModel>facebooklikebox_mysql4</resourceModel>
|
| 59 |
+
</facebooklikebox>
|
| 60 |
+
<facebooklikebox_mysql4>
|
| 61 |
+
<class>Magefox_Facebooklikebox_Model_Mysql4</class>
|
| 62 |
+
<entities>
|
| 63 |
+
<facebooklikebox>
|
| 64 |
+
<table>facebooklikebox</table>
|
| 65 |
+
</facebooklikebox>
|
| 66 |
+
</entities>
|
| 67 |
+
</facebooklikebox_mysql4>
|
| 68 |
+
</models>
|
| 69 |
+
<resources>
|
| 70 |
+
<facebooklikebox_setup>
|
| 71 |
+
<setup>
|
| 72 |
+
<module>Magefox_Facebooklikebox</module>
|
| 73 |
+
</setup>
|
| 74 |
+
<connection>
|
| 75 |
+
<use>core_setup</use>
|
| 76 |
+
</connection>
|
| 77 |
+
</facebooklikebox_setup>
|
| 78 |
+
<facebooklikebox_write>
|
| 79 |
+
<connection>
|
| 80 |
+
<use>core_write</use>
|
| 81 |
+
</connection>
|
| 82 |
+
</facebooklikebox_write>
|
| 83 |
+
<facebooklikebox_read>
|
| 84 |
+
<connection>
|
| 85 |
+
<use>core_read</use>
|
| 86 |
+
</connection>
|
| 87 |
+
</facebooklikebox_read>
|
| 88 |
+
</resources>
|
| 89 |
+
<blocks>
|
| 90 |
+
<facebooklikebox>
|
| 91 |
+
<class>Magefox_Facebooklikebox_Block</class>
|
| 92 |
+
</facebooklikebox>
|
| 93 |
+
</blocks>
|
| 94 |
+
<helpers>
|
| 95 |
+
<facebooklikebox>
|
| 96 |
+
<class>Magefox_Facebooklikebox_Helper</class>
|
| 97 |
+
</facebooklikebox>
|
| 98 |
+
</helpers>
|
| 99 |
+
</global>
|
| 100 |
+
<default>
|
| 101 |
+
<facebooklikebox>
|
| 102 |
+
<general>
|
| 103 |
+
<active>1</active>
|
| 104 |
+
<page_id>208466885878583</page_id>
|
| 105 |
+
<width>195</width>
|
| 106 |
+
<height>400</height>
|
| 107 |
+
<connection>3</connection>
|
| 108 |
+
<show_header>1</show_header>
|
| 109 |
+
<show_face>1</show_face>
|
| 110 |
+
<show_stream>1</show_stream>
|
| 111 |
+
<col_layout>left</col_layout>
|
| 112 |
+
</general>
|
| 113 |
+
</facebooklikebox>
|
| 114 |
+
</default>
|
| 115 |
+
</config>
|
app/code/community/Magefox/Facebooklikebox/etc/system.xml
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<!--
|
| 3 |
+
/******************************************************
|
| 4 |
+
* @package Facebooklikebox module for Magento 1.4.x.x and Magento 1.5.x.x
|
| 5 |
+
* @author http://www.magefox.com
|
| 6 |
+
* @copyright (C) 2011- Magefox.Com
|
| 7 |
+
* @license PHP files are GNU/GPL
|
| 8 |
+
*******************************************************/
|
| 9 |
+
-->
|
| 10 |
+
<config>
|
| 11 |
+
<tabs>
|
| 12 |
+
<magefox translate="label" module="facebooklikebox">
|
| 13 |
+
<label>Magefox</label>
|
| 14 |
+
<sort_order>205</sort_order>
|
| 15 |
+
</magefox>
|
| 16 |
+
</tabs>
|
| 17 |
+
<sections>
|
| 18 |
+
<facebooklikebox translate="label" module="facebooklikebox">
|
| 19 |
+
<label>Facebook Like box</label>
|
| 20 |
+
<tab>magefox</tab>
|
| 21 |
+
<sort_order>130</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 |
+
<groups>
|
| 26 |
+
<general translate="label" module="facebooklikebox">
|
| 27 |
+
<label>General Configuration</label>
|
| 28 |
+
<frontend_type>text</frontend_type>
|
| 29 |
+
<sort_order>1</sort_order>
|
| 30 |
+
<show_in_default>1</show_in_default>
|
| 31 |
+
<show_in_website>1</show_in_website>
|
| 32 |
+
<show_in_store>1</show_in_store>
|
| 33 |
+
<fields>
|
| 34 |
+
<active translate="label">
|
| 35 |
+
<label>Enable Module</label>
|
| 36 |
+
<frontend_type>select</frontend_type>
|
| 37 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 38 |
+
<sort_order>1</sort_order>
|
| 39 |
+
<show_in_default>1</show_in_default>
|
| 40 |
+
<show_in_website>1</show_in_website>
|
| 41 |
+
<show_in_store>1</show_in_store>
|
| 42 |
+
</active>
|
| 43 |
+
<page_id translate="label">
|
| 44 |
+
<label>Page ID</label>
|
| 45 |
+
<frontend_type>text</frontend_type>
|
| 46 |
+
<sort_order>2</sort_order>
|
| 47 |
+
<show_in_default>1</show_in_default>
|
| 48 |
+
<show_in_website>1</show_in_website>
|
| 49 |
+
<show_in_store>1</show_in_store>
|
| 50 |
+
<validate>required-entry</validate>
|
| 51 |
+
</page_id>
|
| 52 |
+
<width translate="label">
|
| 53 |
+
<label>Width</label>
|
| 54 |
+
<frontend_type>text</frontend_type>
|
| 55 |
+
<sort_order>3</sort_order>
|
| 56 |
+
<show_in_default>1</show_in_default>
|
| 57 |
+
<show_in_website>1</show_in_website>
|
| 58 |
+
<show_in_store>1</show_in_store>
|
| 59 |
+
<validate>required-entry validate-greater-than-zero</validate>
|
| 60 |
+
</width>
|
| 61 |
+
<height translate="label">
|
| 62 |
+
<label>Height</label>
|
| 63 |
+
<frontend_type>text</frontend_type>
|
| 64 |
+
<sort_order>4</sort_order>
|
| 65 |
+
<show_in_default>1</show_in_default>
|
| 66 |
+
<show_in_website>1</show_in_website>
|
| 67 |
+
<show_in_store>1</show_in_store>
|
| 68 |
+
<validate>required-entry validate-greater-than-zero</validate>
|
| 69 |
+
</height>
|
| 70 |
+
<connection translate="label">
|
| 71 |
+
<label>Connections</label>
|
| 72 |
+
<frontend_type>text</frontend_type>
|
| 73 |
+
<sort_order>5</sort_order>
|
| 74 |
+
<show_in_default>1</show_in_default>
|
| 75 |
+
<show_in_website>1</show_in_website>
|
| 76 |
+
<show_in_store>1</show_in_store>
|
| 77 |
+
<validate>required-entry validate-greater-than-zero</validate>
|
| 78 |
+
</connection>
|
| 79 |
+
<show_header translate="label">
|
| 80 |
+
<label>Show header</label>
|
| 81 |
+
<frontend_type>select</frontend_type>
|
| 82 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 83 |
+
<sort_order>6</sort_order>
|
| 84 |
+
<show_in_default>1</show_in_default>
|
| 85 |
+
<show_in_website>1</show_in_website>
|
| 86 |
+
<show_in_store>1</show_in_store>
|
| 87 |
+
</show_header>
|
| 88 |
+
<show_face translate="label">
|
| 89 |
+
<label>Show faces</label>
|
| 90 |
+
<frontend_type>select</frontend_type>
|
| 91 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 92 |
+
<sort_order>7</sort_order>
|
| 93 |
+
<show_in_default>1</show_in_default>
|
| 94 |
+
<show_in_website>1</show_in_website>
|
| 95 |
+
<show_in_store>1</show_in_store>
|
| 96 |
+
</show_face>
|
| 97 |
+
<show_stream translate="label">
|
| 98 |
+
<label>Show stream</label>
|
| 99 |
+
<frontend_type>select</frontend_type>
|
| 100 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 101 |
+
<sort_order>8</sort_order>
|
| 102 |
+
<show_in_default>1</show_in_default>
|
| 103 |
+
<show_in_website>1</show_in_website>
|
| 104 |
+
<show_in_store>1</show_in_store>
|
| 105 |
+
</show_stream>
|
| 106 |
+
<col_layout translate="label">
|
| 107 |
+
<label>Position</label>
|
| 108 |
+
<frontend_type>select</frontend_type>
|
| 109 |
+
<source_model>facebooklikebox/system_config_position</source_model>
|
| 110 |
+
<sort_order>9</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 |
+
</col_layout>
|
| 115 |
+
</fields>
|
| 116 |
+
</general>
|
| 117 |
+
</groups>
|
| 118 |
+
</facebooklikebox>
|
| 119 |
+
</sections>
|
| 120 |
+
</config>
|
app/design/frontend/default/default/layout/facebooklikebox.xml
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<!--
|
| 3 |
+
/******************************************************
|
| 4 |
+
* @package Facebooklikebox module for Magento 1.4.x.x and Magento 1.5.x.x
|
| 5 |
+
* @version 1.4.1.1
|
| 6 |
+
* @author http://www.9magentothemes.com
|
| 7 |
+
* @copyright (C) 2011- 9MagentoThemes.Com
|
| 8 |
+
* @license PHP files are GNU/GPL
|
| 9 |
+
*******************************************************/
|
| 10 |
+
-->
|
| 11 |
+
<layout version="0.1.0">
|
| 12 |
+
<default>
|
| 13 |
+
<reference name="left">
|
| 14 |
+
<block type="facebooklikebox/likebox" name="left.facebook.likebox" template="facebooklikebox/likebox.phtml">
|
| 15 |
+
<action method="setData"><name>position</name><value>left</value></action>
|
| 16 |
+
<action method="setData"><name>page_id</name><value>facebooklikebox/general/page_id</value></action>
|
| 17 |
+
<action method="setData"><name>width</name><value>facebooklikebox/general/width</value></action>
|
| 18 |
+
<action method="setData"><name>connection</name><value>facebooklikebox/general/connection</value></action>
|
| 19 |
+
<action method="setData"><name>height</name><value>facebooklikebox/general/height</value></action>
|
| 20 |
+
<action method="setData"><name>show_header</name><value>facebooklikebox/general/show_header</value></action>
|
| 21 |
+
<action method="setData"><name>show_face</name><value>facebooklikebox/general/show_face</value></action>
|
| 22 |
+
<action method="setData"><name>show_stream</name><value>facebooklikebox/general/show_stream</value></action>
|
| 23 |
+
</block>
|
| 24 |
+
</reference>
|
| 25 |
+
<reference name="right">
|
| 26 |
+
<block type="facebooklikebox/likebox" name="right.facebook.likebox" template="facebooklikebox/likebox.phtml">
|
| 27 |
+
<action method="setData"><name>position</name><value>right</value></action>
|
| 28 |
+
<action method="setData"><name>page_id</name><value>facebooklikebox/general/page_id</value></action>
|
| 29 |
+
<action method="setData"><name>width</name><value>facebooklikebox/general/width</value></action>
|
| 30 |
+
<action method="setData"><name>height</name><value>facebooklikebox/general/height</value></action>
|
| 31 |
+
<action method="setData"><name>connection</name><value>facebooklikebox/general/connection</value></action>
|
| 32 |
+
<action method="setData"><name>show_header</name><value>facebooklikebox/general/show_header</value></action>
|
| 33 |
+
<action method="setData"><name>show_face</name><value>facebooklikebox/general/show_face</value></action>
|
| 34 |
+
<action method="setData"><name>show_stream</name><value>facebooklikebox/general/show_stream</value></action>
|
| 35 |
+
</block>
|
| 36 |
+
</reference>
|
| 37 |
+
</default>
|
| 38 |
+
</layout>
|
app/design/frontend/default/default/template/facebooklikebox/likebox.phtml
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/******************************************************
|
| 3 |
+
* @package Facebooklikebox module for Magento 1.4.x.x and Magento 1.5.x.x
|
| 4 |
+
* @author http://www.magefox.com
|
| 5 |
+
* @copyright (C) 2011- Magefox.Com
|
| 6 |
+
* @license PHP files are GNU/GPL
|
| 7 |
+
*******************************************************/
|
| 8 |
+
?>
|
| 9 |
+
<?php $likebox = $this->getLikebox(); ?>
|
| 10 |
+
<?php if($likebox): ?>
|
| 11 |
+
<div class="block block-facebook-likebox" style="border:0 none;">
|
| 12 |
+
<?php echo $likebox; ?>
|
| 13 |
+
<div style="display: none;"><a href="http://www.magefox.com" title="Magento Themes & Magento Extensions">Magento Themes and Magento Extensions</a> by Magefox.Com</div>
|
| 14 |
+
</div>
|
| 15 |
+
<?php endif; ?>
|
app/etc/modules/Magefox_Facebooklikebox.xml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<!--
|
| 3 |
+
/******************************************************
|
| 4 |
+
* @package Facebooklikebox module for Magento 1.4.x.x and Magento 1.5.x.x
|
| 5 |
+
* @version 1.4.1.1
|
| 6 |
+
* @author http://www.9magentothemes.com
|
| 7 |
+
* @copyright (C) 2011- 9MagentoThemes.Com
|
| 8 |
+
* @license PHP files are GNU/GPL
|
| 9 |
+
*******************************************************/
|
| 10 |
+
-->
|
| 11 |
+
<config>
|
| 12 |
+
<modules>
|
| 13 |
+
<Magefox_Facebooklikebox>
|
| 14 |
+
<active>true</active>
|
| 15 |
+
<codePool>community</codePool>
|
| 16 |
+
</Magefox_Facebooklikebox>
|
| 17 |
+
</modules>
|
| 18 |
+
</config>
|
package.xml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<package>
|
| 3 |
+
<name>Magefox_Facebooklikebox</name>
|
| 4 |
+
<version>0.1.0</version>
|
| 5 |
+
<stability>stable</stability>
|
| 6 |
+
<license>OSL v3.0</license>
|
| 7 |
+
<channel>community</channel>
|
| 8 |
+
<extends/>
|
| 9 |
+
<summary>Extension social for facebook like box plugin</summary>
|
| 10 |
+
<description>The Like Box is a social plugin that enables Facebook Page owners to attract and gain Likes from their own website. The Like Box enables users to:
|
| 11 |
+
-See how many users already like this Page, and which of their friends like it too
|
| 12 |
+
-Read recent posts from the Page
|
| 13 |
+
-Like the Page with one click, without needing to visit the Page
|
| 14 |
+
</description>
|
| 15 |
+
<notes>Download from magento connect or go to my site to download this extensions</notes>
|
| 16 |
+
<authors><author><name>Magefox</name><user>magefox</user><email>magefoxtech@gmail.com</email></author></authors>
|
| 17 |
+
<date>2011-08-24</date>
|
| 18 |
+
<time>15:48:46</time>
|
| 19 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Magefox_Facebooklikebox.xml" hash="dc988fa332adab8ca2f106a20a0e8870"/></dir></target><target name="magecommunity"><dir name="Magefox"><dir name="Facebooklikebox"><dir name="Block"><file name="Likebox.php" hash="e98303c66b70532f1c47c630aed9fb1e"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="Helper"><file name="Data.php" hash="40022491936267c0a7c2656ab958bb43"/></dir><dir name="Model"><dir name="System"><dir name="Config"><file name="Position.php" hash="b346fd124b3bd0d46a3dc695b2ec8cd4"/><file name=".DS_Store" hash="d8d80e05e1e08c4209d8795417b36f63"/></dir><file name=".DS_Store" hash="bcd16906a85c8db95650938cda41548e"/></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="etc"><file name="adminhtml.xml" hash="e9f61835cdfebfc85cbd9a4e4a03ad1a"/><file name="config.xml" hash="33a797575a5fb9471e4cecf0cdc51576"/><file name="system.xml" hash="f02926a53fe952fc6f0c3a65e83c77e4"/></dir><file name=".DS_Store" hash="105aea9d95b11d9542b57a8be8480dd7"/></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="facebooklikebox.xml" hash="6ada131b018b4c89323cb7260db0b20d"/></dir><dir name="template"><dir name="facebooklikebox"><file name="likebox.phtml" hash="b6a5a6478a94730e82193f68784421c7"/></dir></dir></dir></dir></dir></target></contents>
|
| 20 |
+
<compatible/>
|
| 21 |
+
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
| 22 |
+
</package>
|
