Version Notes
First Release
Download this release
Release Info
Developer | Kalpesh Sakhareliya |
Extension | Kerss_Fblikebox |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/community/Kerss/Fblikebox/Block/Adminhtml/System/Config/Implementcode.php +77 -0
- app/code/community/Kerss/Fblikebox/Block/Fblikebox.php +23 -0
- app/code/community/Kerss/Fblikebox/Helper/Data.php +18 -0
- app/code/community/Kerss/Fblikebox/Model/System/Config/Source/Options.php +25 -0
- app/code/community/Kerss/Fblikebox/Model/System/Config/Source/Tabs.php +39 -0
- app/code/community/Kerss/Fblikebox/etc/adminhtml.xml +23 -0
- app/code/community/Kerss/Fblikebox/etc/config.xml +58 -0
- app/code/community/Kerss/Fblikebox/etc/system.xml +128 -0
- app/code/community/Kerss/Fblikebox/etc/widget.xml +7 -0
- app/design/frontend/base/default/layout/fblikebox.xml +8 -0
- app/design/frontend/base/default/template/fblikebox/fblikebox.phtml +63 -0
- app/etc/modules/Kerss_Fblikebox.xml +12 -0
- package.xml +26 -0
app/code/community/Kerss/Fblikebox/Block/Adminhtml/System/Config/Implementcode.php
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Kerss Infotech
|
5 |
+
* Kerss Facebook Fanbox Magento Extension
|
6 |
+
*
|
7 |
+
* @category Kerss
|
8 |
+
* @package Kerss_Fblikebox
|
9 |
+
* @copyright Copyright � 2015-2016 Kerss Infotech (http://kersstech.com/)
|
10 |
+
*/
|
11 |
+
class Kerss_Fblikebox_Block_Adminhtml_System_Config_Implementcode extends Mage_Adminhtml_Block_System_Config_Form_Field {
|
12 |
+
|
13 |
+
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element) {
|
14 |
+
|
15 |
+
return '
|
16 |
+
<div class="entry-edit-head collapseable"><a onclick="Fieldset.toggleCollapse(\'fblikebox_template\'); return false;" href="#" id="fblikebox_template-head" class="open">Manually Implement Code</a></div>
|
17 |
+
<input id="fblikebox_template-state" type="hidden" value="1" name="config_state[fblikebox_template]">
|
18 |
+
<fieldset id="fblikebox_template" class="config collapseable" style="">
|
19 |
+
<h4 class="icon-head head-edit-form fieldset-legend">Code for Facebook Like Box (FanBox)</h4>
|
20 |
+
|
21 |
+
<div id="messages">
|
22 |
+
<ul class="messages">
|
23 |
+
<li class="notice-msg">
|
24 |
+
<ul>
|
25 |
+
<li>' . Mage::helper('fblikebox')->__('Add code below to a template file') . '</li>
|
26 |
+
</ul>
|
27 |
+
</li>
|
28 |
+
</ul>
|
29 |
+
</div>
|
30 |
+
<ul>
|
31 |
+
<li>
|
32 |
+
<code>
|
33 |
+
$this->getLayout()->createBlock(' . '"fblikebox/fblikebox"' . ')->setTemplate(' . '"fblikebox/fblikebox.phtml"' . ')->toHtml();
|
34 |
+
</code>
|
35 |
+
</li>
|
36 |
+
</ul>
|
37 |
+
<br>
|
38 |
+
<div id="messages">
|
39 |
+
<ul class="messages">
|
40 |
+
<li class="notice-msg">
|
41 |
+
<ul>
|
42 |
+
<li>' . Mage::helper('fblikebox')->__('Add below code to a CMS page') . '</li>
|
43 |
+
</ul>
|
44 |
+
</li>
|
45 |
+
</ul>
|
46 |
+
</div>
|
47 |
+
<ul>
|
48 |
+
<li>
|
49 |
+
<code>
|
50 |
+
{{block type="fblikebox/fblikebox" name="fblikebox.cms" template="fblikebox/fblikebox.phtml"}}
|
51 |
+
</code>
|
52 |
+
</li>
|
53 |
+
</ul>
|
54 |
+
<br>
|
55 |
+
<div id="messages">
|
56 |
+
<ul class="messages">
|
57 |
+
<li class="notice-msg">
|
58 |
+
<ul>
|
59 |
+
<li>' . Mage::helper('fblikebox')->__('Add below code to xml layout files') . '</li>
|
60 |
+
</ul>
|
61 |
+
</li>
|
62 |
+
</ul>
|
63 |
+
</div>
|
64 |
+
|
65 |
+
<ul>
|
66 |
+
<li>
|
67 |
+
<code>
|
68 |
+
<block type="fblikebox/fblikebox" name="fblikebox.fblikebox" template="fblikebox/fblikebox.phtml"><br>
|
69 |
+
|
70 |
+
</block>
|
71 |
+
</code>
|
72 |
+
</li>
|
73 |
+
</ul>
|
74 |
+
</fieldset>';
|
75 |
+
}
|
76 |
+
|
77 |
+
}
|
app/code/community/Kerss/Fblikebox/Block/Fblikebox.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Kerss Infotech
|
5 |
+
* Kerss Facebook Fanbox Magento Extension
|
6 |
+
*
|
7 |
+
* @category Kerss
|
8 |
+
* @package Kerss_Fblikebox
|
9 |
+
* @copyright Copyright � 2015-2016 Kerss Infotech (http://kersstech.com/)
|
10 |
+
*/
|
11 |
+
class Kerss_Fblikebox_Block_Fblikebox extends Mage_Core_Block_Template implements Mage_Widget_Block_Interface {
|
12 |
+
|
13 |
+
/**
|
14 |
+
* Produce links list rendered as html
|
15 |
+
*
|
16 |
+
* @return string
|
17 |
+
*/
|
18 |
+
protected function _toHtml() {
|
19 |
+
$this->setTemplate('fblikebox/fblikebox.phtml');
|
20 |
+
return parent::_toHtml();
|
21 |
+
}
|
22 |
+
|
23 |
+
}
|
app/code/community/Kerss/Fblikebox/Helper/Data.php
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Kerss Infotech
|
5 |
+
* Kerss Facebook Fanbox Magento Extension
|
6 |
+
*
|
7 |
+
* @category Kerss
|
8 |
+
* @package Kerss_Fblikebox
|
9 |
+
* @copyright Copyright � 2015-2016 Kerss Infotech (http://kersstech.com/)
|
10 |
+
*/
|
11 |
+
class Kerss_Fblikebox_Helper_Data extends Mage_Core_Helper_Abstract {
|
12 |
+
|
13 |
+
public function getConfigValue($value) {
|
14 |
+
$storeid = Mage::app()->getStore()->getStoreId();
|
15 |
+
return Mage::getStoreConfig($value, $storeid);
|
16 |
+
}
|
17 |
+
|
18 |
+
}
|
app/code/community/Kerss/Fblikebox/Model/System/Config/Source/Options.php
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Kerss Infotech
|
5 |
+
* Kerss Facebook Fanbox Magento Extension
|
6 |
+
*
|
7 |
+
* @category Kerss
|
8 |
+
* @package Kerss_Fblikebox
|
9 |
+
* @copyright Copyright � 2015-2016 Kerss Infotech (http://kersstech.com/)
|
10 |
+
*/
|
11 |
+
class Kerss_Fblikebox_Model_System_Config_Source_Options {
|
12 |
+
|
13 |
+
/**
|
14 |
+
* Provide available options as a value/label array
|
15 |
+
*
|
16 |
+
* @return array
|
17 |
+
*/
|
18 |
+
public function toOptionArray() {
|
19 |
+
return array(
|
20 |
+
array('value' => 'true', 'label' => 'Yes'),
|
21 |
+
array('value' => 'false', 'label' => 'No'),
|
22 |
+
);
|
23 |
+
}
|
24 |
+
|
25 |
+
}
|
app/code/community/Kerss/Fblikebox/Model/System/Config/Source/Tabs.php
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Kerss Infotech
|
5 |
+
* Kerss Facebook Fanbox Magento Extension
|
6 |
+
*
|
7 |
+
* @category Kerss
|
8 |
+
* @package Kerss_Fblikebox
|
9 |
+
* @copyright Copyright � 2015-2016 Kerss Infotech (http://kersstech.com/)
|
10 |
+
*/
|
11 |
+
class Kerss_Fblikebox_Model_System_Config_Source_Tabs {
|
12 |
+
|
13 |
+
/**
|
14 |
+
* Options getter
|
15 |
+
*
|
16 |
+
* @return array
|
17 |
+
*/
|
18 |
+
public function toOptionArray() {
|
19 |
+
return array(
|
20 |
+
array('value' => 'timeline', 'label' => Mage::helper('adminhtml')->__('Timeline')),
|
21 |
+
array('value' => 'events', 'label' => Mage::helper('adminhtml')->__('Events')),
|
22 |
+
array('value' => 'messages', 'label' => Mage::helper('adminhtml')->__('Message')),
|
23 |
+
);
|
24 |
+
}
|
25 |
+
|
26 |
+
/**
|
27 |
+
* Get options in "key-value" format
|
28 |
+
*
|
29 |
+
* @return array
|
30 |
+
*/
|
31 |
+
public function toArray() {
|
32 |
+
return array(
|
33 |
+
'timeline' => Mage::helper('adminhtml')->__('Timeline'),
|
34 |
+
'events' => Mage::helper('adminhtml')->__('Events'),
|
35 |
+
'messages' => Mage::helper('adminhtml')->__('Message'),
|
36 |
+
);
|
37 |
+
}
|
38 |
+
|
39 |
+
}
|
app/code/community/Kerss/Fblikebox/etc/adminhtml.xml
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<acl>
|
4 |
+
<resources>
|
5 |
+
<admin>
|
6 |
+
<children>
|
7 |
+
<system>
|
8 |
+
<children>
|
9 |
+
<config>
|
10 |
+
<children>
|
11 |
+
<fblikebox translate="title" module="fblikebox">
|
12 |
+
<title>Facebook Like Box Section</title>
|
13 |
+
<sort_order>0</sort_order>
|
14 |
+
</fblikebox>
|
15 |
+
</children>
|
16 |
+
</config>
|
17 |
+
</children>
|
18 |
+
</system>
|
19 |
+
</children>
|
20 |
+
</admin>
|
21 |
+
</resources>
|
22 |
+
</acl>
|
23 |
+
</config>
|
app/code/community/Kerss/Fblikebox/etc/config.xml
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Kerss_Fblikebox>
|
5 |
+
<version>1.0.0</version>
|
6 |
+
</Kerss_Fblikebox>
|
7 |
+
</modules>
|
8 |
+
<frontend>
|
9 |
+
<routers>
|
10 |
+
<fblikebox>
|
11 |
+
<use>standard</use>
|
12 |
+
<args>
|
13 |
+
<module>Kerss_Fblikebox</module>
|
14 |
+
<frontName>fblikebox</frontName>
|
15 |
+
</args>
|
16 |
+
</fblikebox>
|
17 |
+
</routers>
|
18 |
+
<layout>
|
19 |
+
<updates>
|
20 |
+
<fblikebox>
|
21 |
+
<file>fblikebox.xml</file>
|
22 |
+
</fblikebox>
|
23 |
+
</updates>
|
24 |
+
</layout>
|
25 |
+
</frontend>
|
26 |
+
<global>
|
27 |
+
<helpers>
|
28 |
+
<fblikebox>
|
29 |
+
<class>Kerss_Fblikebox_Helper</class>
|
30 |
+
</fblikebox>
|
31 |
+
</helpers>
|
32 |
+
<blocks>
|
33 |
+
<fblikebox>
|
34 |
+
<class>Kerss_Fblikebox_Block</class>
|
35 |
+
</fblikebox>
|
36 |
+
</blocks>
|
37 |
+
<models>
|
38 |
+
<fblikebox>
|
39 |
+
<class>Kerss_Fblikebox_Model</class>
|
40 |
+
</fblikebox>
|
41 |
+
</models>
|
42 |
+
</global>
|
43 |
+
<default>
|
44 |
+
<fblikebox>
|
45 |
+
<general>
|
46 |
+
<enable>1</enable>
|
47 |
+
<fb_block_title>Facebook</fb_block_title>
|
48 |
+
<fb_href></fb_href>
|
49 |
+
<fb_width>240</fb_width>
|
50 |
+
<fb_height>300</fb_height>
|
51 |
+
<fb_tabs>timeline</fb_tabs>
|
52 |
+
<fb_small_header>false</fb_small_header>
|
53 |
+
<fb_hide_cover>false</fb_hide_cover>
|
54 |
+
<fb_show_faces>true</fb_show_faces>
|
55 |
+
</general>
|
56 |
+
</fblikebox>
|
57 |
+
</default>
|
58 |
+
</config>
|
app/code/community/Kerss/Fblikebox/etc/system.xml
ADDED
@@ -0,0 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<tabs>
|
4 |
+
<kerss translate="label" module="fblikebox">
|
5 |
+
<label>Kerss Tech</label>
|
6 |
+
<sort_order>120</sort_order>
|
7 |
+
</kerss>
|
8 |
+
</tabs>
|
9 |
+
<sections>
|
10 |
+
<fblikebox translate="label" module="fblikebox">
|
11 |
+
<label>Facebook Like Box</label>
|
12 |
+
<tab>kerss</tab>
|
13 |
+
<frontend_type>text</frontend_type>
|
14 |
+
<sort_order>10</sort_order>
|
15 |
+
<show_in_default>1</show_in_default>
|
16 |
+
<show_in_website>1</show_in_website>
|
17 |
+
<show_in_store>1</show_in_store>
|
18 |
+
<groups>
|
19 |
+
<implement translate="label">
|
20 |
+
<label>Implement Code</label>
|
21 |
+
<frontend_model>fblikebox/adminhtml_system_config_implementcode</frontend_model>
|
22 |
+
<sort_order>20</sort_order>
|
23 |
+
<show_in_default>1</show_in_default>
|
24 |
+
<show_in_website>1</show_in_website>
|
25 |
+
<show_in_store>1</show_in_store>
|
26 |
+
</implement>
|
27 |
+
<general translate="label">
|
28 |
+
<label>General Configuration</label>
|
29 |
+
<frontend_type>text</frontend_type>
|
30 |
+
<sort_order>10</sort_order>
|
31 |
+
<show_in_default>1</show_in_default>
|
32 |
+
<show_in_website>1</show_in_website>
|
33 |
+
<show_in_store>1</show_in_store>
|
34 |
+
<fields>
|
35 |
+
<enable translate="label">
|
36 |
+
<label>Enable Facebook Like box</label>
|
37 |
+
<frontend_type>select</frontend_type>
|
38 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
39 |
+
<sort_order>10</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 |
+
</enable>
|
44 |
+
<fb_block_title translate="label">
|
45 |
+
<label>Facebook Block Title</label>
|
46 |
+
<frontend_type>text</frontend_type>
|
47 |
+
<sort_order>12</sort_order>
|
48 |
+
<show_in_default>1</show_in_default>
|
49 |
+
<show_in_website>1</show_in_website>
|
50 |
+
<show_in_store>1</show_in_store>
|
51 |
+
<comment><![CDATA[Facebook block title]]></comment>
|
52 |
+
</fb_block_title>
|
53 |
+
<fb_href translate="label">
|
54 |
+
<label><![CDATA[Facebook Page URL]]></label>
|
55 |
+
<frontend_type>text</frontend_type>
|
56 |
+
<sort_order>20</sort_order>
|
57 |
+
<show_in_default>1</show_in_default>
|
58 |
+
<show_in_website>1</show_in_website>
|
59 |
+
<show_in_store>1</show_in_store>
|
60 |
+
<comment><![CDATA[The absolute URL of the Facebook Page that will be liked.]]></comment>
|
61 |
+
</fb_href>
|
62 |
+
<fb_width translate="label">
|
63 |
+
<label>Width</label>
|
64 |
+
<frontend_type>text</frontend_type>
|
65 |
+
<validate>required-entry validate-number</validate>
|
66 |
+
<sort_order>30</sort_order>
|
67 |
+
<show_in_default>1</show_in_default>
|
68 |
+
<show_in_website>1</show_in_website>
|
69 |
+
<show_in_store>1</show_in_store>
|
70 |
+
<comment><![CDATA[The pixel width of the plugin. Min. is 180 & Max. is 500]]></comment>
|
71 |
+
</fb_width>
|
72 |
+
<fb_height translate="label">
|
73 |
+
<label>Height</label>
|
74 |
+
<frontend_type>text</frontend_type>
|
75 |
+
<validate>required-entry validate-number</validate>
|
76 |
+
<sort_order>40</sort_order>
|
77 |
+
<show_in_default>1</show_in_default>
|
78 |
+
<show_in_website>1</show_in_website>
|
79 |
+
<show_in_store>1</show_in_store>
|
80 |
+
<comment><![CDATA[The pixel height of the plugin. Min. is 70]]></comment>
|
81 |
+
</fb_height>
|
82 |
+
<fb_tabs translate="label">
|
83 |
+
<label>Tabs</label>
|
84 |
+
<frontend_type>multiselect</frontend_type>
|
85 |
+
<source_model>fblikebox/system_config_source_tabs</source_model>
|
86 |
+
<validate>required-entry</validate>
|
87 |
+
<sort_order>50</sort_order>
|
88 |
+
<show_in_default>1</show_in_default>
|
89 |
+
<show_in_website>1</show_in_website>
|
90 |
+
<show_in_store>1</show_in_store>
|
91 |
+
<comment><![CDATA[Tabs to render i.e. timeline, events, messages. Press Ctrl to select multiple tabs, i.e. timeline, events.]]></comment>
|
92 |
+
</fb_tabs>
|
93 |
+
<fb_small_header translate="label">
|
94 |
+
<label>Use Small Header</label>
|
95 |
+
<frontend_type>select</frontend_type>
|
96 |
+
<source_model>fblikebox/system_config_source_options</source_model>
|
97 |
+
<sort_order>60</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 |
+
<comment><![CDATA[Use the small header instead]]></comment>
|
102 |
+
</fb_small_header>
|
103 |
+
<fb_hide_cover translate="label">
|
104 |
+
<label>Hide Cover Photos</label>
|
105 |
+
<frontend_type>select</frontend_type>
|
106 |
+
<source_model>fblikebox/options</source_model>
|
107 |
+
<sort_order>70</sort_order>
|
108 |
+
<show_in_default>1</show_in_default>
|
109 |
+
<show_in_website>1</show_in_website>
|
110 |
+
<show_in_store>1</show_in_store>
|
111 |
+
<comment><![CDATA[Hide cover photo in the header]]></comment>
|
112 |
+
</fb_hide_cover>
|
113 |
+
<fb_show_faces translate="label">
|
114 |
+
<label>Show Friends Faces</label>
|
115 |
+
<frontend_type>select</frontend_type>
|
116 |
+
<source_model>fblikebox/options</source_model>
|
117 |
+
<sort_order>80</sort_order>
|
118 |
+
<show_in_default>1</show_in_default>
|
119 |
+
<show_in_website>1</show_in_website>
|
120 |
+
<show_in_store>1</show_in_store>
|
121 |
+
<comment><![CDATA[Show profile photos when friends like this]]></comment>
|
122 |
+
</fb_show_faces>
|
123 |
+
</fields>
|
124 |
+
</general>
|
125 |
+
</groups>
|
126 |
+
</fblikebox>
|
127 |
+
</sections>
|
128 |
+
</config>
|
app/code/community/Kerss/Fblikebox/etc/widget.xml
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<widgets>
|
3 |
+
<fbwidget type="fblikebox/fblikebox">
|
4 |
+
<name>Facebook Likebox Widget</name>
|
5 |
+
<description type="desc">Add Facebook Widget</description>
|
6 |
+
</fbwidget>
|
7 |
+
</widgets>
|
app/design/frontend/base/default/layout/fblikebox.xml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="1.0.0">
|
3 |
+
<default>
|
4 |
+
<reference name="root">
|
5 |
+
<block type="fblikebox/fblikebox" name="fblikebox_widget"/>
|
6 |
+
</reference>
|
7 |
+
</default>
|
8 |
+
</layout>
|
app/design/frontend/base/default/template/fblikebox/fblikebox.phtml
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Kerss Infotech
|
4 |
+
* Kerss Facebook Fanbox Magento Extension
|
5 |
+
*
|
6 |
+
* @category Kerss
|
7 |
+
* @package Kerss_Fblikebox
|
8 |
+
* @copyright Copyright � 2015-2016 Kerss Infotech (http://kersstech.com/)
|
9 |
+
*/
|
10 |
+
$_helper = $this->helper('fblikebox');
|
11 |
+
$enableFblikebox = $_helper->getConfigValue('fblikebox/general/enable');
|
12 |
+
if ($enableFblikebox) {
|
13 |
+
?>
|
14 |
+
<div class="block block-fblikebox">
|
15 |
+
<div class="block-title">
|
16 |
+
<strong><span><?php echo $_helper->getConfigValue('fblikebox/general/fb_block_title'); ?></span></strong>
|
17 |
+
</div>
|
18 |
+
<?php
|
19 |
+
$fb_href = $_helper->getConfigValue('fblikebox/general/fb_href');
|
20 |
+
$fb_width = $_helper->getConfigValue('fblikebox/general/fb_width');
|
21 |
+
$fb_height = $_helper->getConfigValue('fblikebox/general/fb_height');
|
22 |
+
$fb_tabs = $_helper->getConfigValue('fblikebox/general/fb_tabs');
|
23 |
+
$fb_small_header = $_helper->getConfigValue('fblikebox/general/fb_small_header');
|
24 |
+
$fb_hide_cover = $_helper->getConfigValue('fblikebox/general/fb_hide_cover');
|
25 |
+
$fb_show_faces = $_helper->getConfigValue('fblikebox/general/fb_show_faces');
|
26 |
+
|
27 |
+
$box_content = "";
|
28 |
+
$box_content .='<iframe src="http://www.facebook.com/plugins/likebox.php?href=' . urlencode($fb_href);
|
29 |
+
if ($fb_width) {
|
30 |
+
$box_content .= '&width=' . $fb_width;
|
31 |
+
}
|
32 |
+
|
33 |
+
if ($fb_height) {
|
34 |
+
$box_content .= '&height=' . $fb_height;
|
35 |
+
}
|
36 |
+
|
37 |
+
if ($fb_tabs) {
|
38 |
+
$box_content .= '&tabs=' . $fb_tabs;
|
39 |
+
} else {
|
40 |
+
$box_content .= '&tabs=timeline';
|
41 |
+
}
|
42 |
+
|
43 |
+
$box_content .= '&small_header=' . $fb_small_header;
|
44 |
+
$box_content .= '&hide_cover=' . $fb_hide_cover;
|
45 |
+
$box_content .= '&show_facepile=' . $fb_show_faces;
|
46 |
+
|
47 |
+
$box_content .= '" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; ';
|
48 |
+
|
49 |
+
if ($fb_width) {
|
50 |
+
$box_content .= ' width:' . $fb_width . 'px; ';
|
51 |
+
}
|
52 |
+
|
53 |
+
if ($fb_height) {
|
54 |
+
$box_content .= ' height:' . $fb_height . 'px; ';
|
55 |
+
}
|
56 |
+
$box_content .= '"></iframe>';
|
57 |
+
?>
|
58 |
+
<div id='fbfanbox'>
|
59 |
+
<?php echo $box_content; ?>
|
60 |
+
</div>
|
61 |
+
</div>
|
62 |
+
<?php
|
63 |
+
}
|
app/etc/modules/Kerss_Fblikebox.xml
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Kerss_Fblikebox>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
<depends>
|
8 |
+
<Mage_Widget />
|
9 |
+
</depends>
|
10 |
+
</Kerss_Fblikebox>
|
11 |
+
</modules>
|
12 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Kerss_Fblikebox</name>
|
4 |
+
<version>1.0.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>Show a box of your Facebook fan on your store for customers to easily click “like” and follow updates </summary>
|
10 |
+
<description>This extension helps to attract users to like and become a fan of your store, and get store updates. It is bridge between your store and facebook page, it will increase sales and fan both.
|
11 |
+

|
12 |
+
Features:
|
13 |
+
- Easy to customize the size of the fanbox
|
14 |
+
- Add in any cms pages using widget
|
15 |
+
- Set tabs like timeline, events, messges etc
|
16 |
+
- Show/Hide cover photos, friends faces
|
17 |
+
- Set small or large header
|
18 |
+
- Manually implement facebook like box code in to template file, layout xml file or cms pages.</description>
|
19 |
+
<notes>First Release</notes>
|
20 |
+
<authors><author><name>Kalpesh Sakhareliya</name><user>kersstech</user><email>kersstech@gmail.com</email></author></authors>
|
21 |
+
<date>2016-10-07</date>
|
22 |
+
<time>12:31:05</time>
|
23 |
+
<contents><target name="magecommunity"><dir name="Kerss"><dir name="Fblikebox"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Implementcode.php" hash="1598fe027e66a00196562818649d790c"/></dir></dir></dir><file name="Fblikebox.php" hash="a83260359a82ba3b333f6bb43d03e40e"/></dir><dir name="Helper"><file name="Data.php" hash="4c44a7a1d621a0871e9bbc5d66bd3935"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Options.php" hash="5d29e486ac56e0b1ccb57248ef021161"/><file name="Tabs.php" hash="6647598ba80de0d31aa80b4b2827758f"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="e71ce5ecd34fc17fbda293678a7bddbe"/><file name="config.xml" hash="045850f3549ba7bd80103232506aaed9"/><file name="system.xml" hash="1b37f3b746c17f465cb0b1f73d65be6a"/><file name="widget.xml" hash="3288bcabae0616e75ddc269af1bb4de8"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Kerss_Fblikebox.xml" hash="d9a5fcdabe16b305147b1aa5e0fd252f"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="fblikebox.xml" hash="ac8d4d62c10f73e1237201dd49e01f2e"/></dir><dir name="template"><dir name="fblikebox"><file name="fblikebox.phtml" hash="4ad1ddc5b4e0552c294debf8c23b1add"/></dir></dir></dir></dir></dir></target></contents>
|
24 |
+
<compatible/>
|
25 |
+
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
|
26 |
+
</package>
|