Version Notes
New in this version:
1. Added feature to show FB Fan Box on CMS Block and Layout files.
2. Bug Fixes.
Download this release
Release Info
Developer | Team Vivacity |
Extension | Facebook_Like_Box_In_Sidebar |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
- app/code/community/Vivacity/Flikebox/Block/Likebox.php +35 -16
- app/code/community/Vivacity/Flikebox/Block/Likebox.php~ +61 -0
- app/code/community/Vivacity/Flikebox/Helper/Data.php +29 -1
- app/code/community/Vivacity/Flikebox/Helper/Data.php~ +41 -0
- app/code/community/Vivacity/Flikebox/Model/Layout.php +2 -1
- app/code/community/Vivacity/Flikebox/Model/Layout.php~ +15 -0
- app/code/community/Vivacity/Flikebox/etc/config.xml +72 -72
- app/code/community/Vivacity/Flikebox/etc/config.xml~ +73 -0
- app/code/community/Vivacity/Flikebox/etc/system.xml +9 -6
- app/code/community/Vivacity/Flikebox/etc/system.xml~ +131 -0
- app/design/frontend/base/default/layout/flikebox.xml +1 -1
- app/design/frontend/base/default/template/flikebox/like.phtml +6 -0
- app/design/frontend/base/default/template/flikebox/like.phtml~ +6 -0
- app/design/frontend/base/default/template/flikebox/likebox.phtml +3 -0
- app/design/frontend/base/default/template/flikebox/likebox.phtml~ +3 -0
- package.xml +9 -7
app/code/community/Vivacity/Flikebox/Block/Likebox.php
CHANGED
@@ -1,21 +1,25 @@
|
|
1 |
<?php
|
2 |
class Vivacity_Flikebox_Block_Likebox extends Mage_Core_Block_Template
|
3 |
{
|
4 |
-
public function getStoreConfig($path){
|
5 |
|
6 |
return Mage::getStoreConfig($path);
|
7 |
}
|
8 |
-
|
9 |
-
|
|
|
|
|
|
|
10 |
|
11 |
$isActive = Mage::helper('flikebox')->isActive();
|
12 |
-
$position = Mage::helper('flikebox')->getPosition();
|
13 |
|
14 |
-
if($isActive) {
|
|
|
15 |
|
16 |
-
if ($position == $this->getPosition()) {
|
17 |
-
|
18 |
-
$connections = $this->getStoreConfig($this->getConnection());
|
19 |
|
20 |
$pageId = $this->getStoreConfig($this->getPageId());
|
21 |
$width = $this->getStoreConfig($this->getWidth());
|
@@ -23,20 +27,35 @@ class Vivacity_Flikebox_Block_Likebox extends Mage_Core_Block_Template
|
|
23 |
|
24 |
$showHeader = (bool)$this->getStoreConfig($this->getShowHeader());
|
25 |
$showFace = (bool)$this->getStoreConfig($this->getShowFace());
|
26 |
-
$showStream = (bool)$this->getStoreConfig($this->getShowStream());
|
27 |
|
28 |
-
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.'&height='.$height.'" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:'.$width.'px; height:'.$height.'px;" allowTransparency="true"></iframe>';
|
|
|
|
|
|
|
|
|
29 |
|
30 |
-
}
|
|
|
|
|
|
|
31 |
|
32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
|
34 |
-
|
35 |
|
36 |
-
} else {
|
37 |
|
38 |
-
return null;
|
39 |
|
40 |
}
|
41 |
}
|
42 |
-
}
|
1 |
<?php
|
2 |
class Vivacity_Flikebox_Block_Likebox extends Mage_Core_Block_Template
|
3 |
{
|
4 |
+
public function getStoreConfig($path){
|
5 |
|
6 |
return Mage::getStoreConfig($path);
|
7 |
}
|
8 |
+
public function test(){
|
9 |
+
|
10 |
+
return "Testing";
|
11 |
+
}
|
12 |
+
public function getLikebox(){
|
13 |
|
14 |
$isActive = Mage::helper('flikebox')->isActive();
|
15 |
+
$position = Mage::helper('flikebox')->getPosition();
|
16 |
|
17 |
+
if($isActive) {
|
18 |
+
if($position != "custom"){
|
19 |
|
20 |
+
if ($position == $this->getPosition()) {
|
21 |
+
|
22 |
+
$connections = $this->getStoreConfig($this->getConnection());
|
23 |
|
24 |
$pageId = $this->getStoreConfig($this->getPageId());
|
25 |
$width = $this->getStoreConfig($this->getWidth());
|
27 |
|
28 |
$showHeader = (bool)$this->getStoreConfig($this->getShowHeader());
|
29 |
$showFace = (bool)$this->getStoreConfig($this->getShowFace());
|
30 |
+
$showStream = (bool)$this->getStoreConfig($this->getShowStream());
|
31 |
|
32 |
+
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.'&height='.$height.'" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:'.$width.'px; height:'.$height.'px;" allowTransparency="true"></iframe>';
|
33 |
+
|
34 |
+
} else {
|
35 |
+
|
36 |
+
return null;
|
37 |
|
38 |
+
}
|
39 |
+
}
|
40 |
+
else {
|
41 |
+
$connections = Mage::helper('flikebox')->getConnection();
|
42 |
|
43 |
+
$pageId = Mage::helper('flikebox')->getPageId();
|
44 |
+
$width = Mage::helper('flikebox')->getWidth();
|
45 |
+
$height = Mage::helper('flikebox')->getHeight();
|
46 |
+
|
47 |
+
$showHeader = (bool)Mage::helper('flikebox')->getShowHeader();
|
48 |
+
$showFace = (bool)Mage::helper('flikebox')->getShowFace();
|
49 |
+
$showStream = (bool)Mage::helper('flikebox')->getShowStream();
|
50 |
+
|
51 |
+
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.'&height='.$height.'" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:'.$width.'px; height:'.$height.'px;" allowTransparency="true"></iframe>';
|
52 |
|
53 |
+
}
|
54 |
|
55 |
+
} else {
|
56 |
|
57 |
+
return null;
|
58 |
|
59 |
}
|
60 |
}
|
61 |
+
}
|
app/code/community/Vivacity/Flikebox/Block/Likebox.php~
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Vivacity_Flikebox_Block_Likebox extends Mage_Core_Block_Template
|
3 |
+
{
|
4 |
+
public function getStoreConfig($path){
|
5 |
+
|
6 |
+
return Mage::getStoreConfig($path);
|
7 |
+
}
|
8 |
+
public function test(){
|
9 |
+
|
10 |
+
return "Testing";
|
11 |
+
}
|
12 |
+
public function getLikebox(){
|
13 |
+
|
14 |
+
$isActive = Mage::helper('flikebox')->isActive();
|
15 |
+
$position = Mage::helper('flikebox')->getPosition();
|
16 |
+
|
17 |
+
if($isActive) {
|
18 |
+
if($position != "custom"){
|
19 |
+
|
20 |
+
if ($position == $this->getPosition()) {
|
21 |
+
|
22 |
+
$connections = $this->getStoreConfig($this->getConnection());
|
23 |
+
|
24 |
+
$pageId = $this->getStoreConfig($this->getPageId());
|
25 |
+
$width = $this->getStoreConfig($this->getWidth());
|
26 |
+
$height = $this->getStoreConfig($this->getHeight());
|
27 |
+
|
28 |
+
$showHeader = (bool)$this->getStoreConfig($this->getShowHeader());
|
29 |
+
$showFace = (bool)$this->getStoreConfig($this->getShowFace());
|
30 |
+
$showStream = (bool)$this->getStoreConfig($this->getShowStream());
|
31 |
+
|
32 |
+
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.'&height='.$height.'" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:'.$width.'px; height:'.$height.'px;" allowTransparency="true"></iframe>';
|
33 |
+
|
34 |
+
} else {
|
35 |
+
|
36 |
+
return null;
|
37 |
+
|
38 |
+
}
|
39 |
+
}
|
40 |
+
else {
|
41 |
+
$connections = Mage::helper('flikebox')->getConnection();
|
42 |
+
|
43 |
+
$pageId = Mage::helper('flikebox')->getPageId();
|
44 |
+
$width = Mage::helper('flikebox')->getWidth();
|
45 |
+
$height = Mage::helper('flikebox')->getHeight();
|
46 |
+
|
47 |
+
$showHeader = (bool)$this->getStoreConfig($this->getShowHeader());
|
48 |
+
$showFace = (bool)$this->getStoreConfig($this->getShowFace());
|
49 |
+
$showStream = (bool)$this->getStoreConfig($this->getShowStream());
|
50 |
+
|
51 |
+
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.'&height='.$height.'" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:'.$width.'px; height:'.$height.'px;" allowTransparency="true"></iframe>';
|
52 |
+
|
53 |
+
}
|
54 |
+
|
55 |
+
} else {
|
56 |
+
|
57 |
+
return null;
|
58 |
+
|
59 |
+
}
|
60 |
+
}
|
61 |
+
}
|
app/code/community/Vivacity/Flikebox/Helper/Data.php
CHANGED
@@ -10,4 +10,32 @@ class Vivacity_Flikebox_Helper_Data extends Mage_Core_Helper_Abstract
|
|
10 |
{
|
11 |
return Mage::getStoreConfig('flikebox/general/col_layout');
|
12 |
}
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
{
|
11 |
return Mage::getStoreConfig('flikebox/general/col_layout');
|
12 |
}
|
13 |
+
public function getPageId()
|
14 |
+
{
|
15 |
+
return Mage::getStoreConfig('flikebox/general/page_id');
|
16 |
+
}
|
17 |
+
public function getWidth()
|
18 |
+
{
|
19 |
+
return Mage::getStoreConfig('flikebox/general/width');
|
20 |
+
}
|
21 |
+
public function getHeight()
|
22 |
+
{
|
23 |
+
return Mage::getStoreConfig('flikebox/general/height');
|
24 |
+
}
|
25 |
+
public function getConnection()
|
26 |
+
{
|
27 |
+
return Mage::getStoreConfig('flikebox/general/connection');
|
28 |
+
}
|
29 |
+
public function getShowHeader()
|
30 |
+
{
|
31 |
+
return Mage::getStoreConfig('flikebox/general/show_header');
|
32 |
+
}
|
33 |
+
public function getShowFace()
|
34 |
+
{
|
35 |
+
return Mage::getStoreConfig('flikebox/general/show_face');
|
36 |
+
}
|
37 |
+
public function getShowStream()
|
38 |
+
{
|
39 |
+
return Mage::getStoreConfig('flikebox/general/show_stream');
|
40 |
+
}
|
41 |
+
}
|
app/code/community/Vivacity/Flikebox/Helper/Data.php~
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Vivacity_Flikebox_Helper_Data extends Mage_Core_Helper_Abstract
|
3 |
+
{
|
4 |
+
public function isActive()
|
5 |
+
{
|
6 |
+
return Mage::getStoreConfig('flikebox/general/active');
|
7 |
+
}
|
8 |
+
|
9 |
+
public function getPosition()
|
10 |
+
{
|
11 |
+
return Mage::getStoreConfig('flikebox/general/col_layout');
|
12 |
+
}
|
13 |
+
public function getPageId()
|
14 |
+
{
|
15 |
+
return Mage::getStoreConfig('flikebox/general/page_id');
|
16 |
+
}
|
17 |
+
public function getWidth()
|
18 |
+
{
|
19 |
+
return Mage::getStoreConfig('flikebox/general/width');
|
20 |
+
}
|
21 |
+
public function getHeight()
|
22 |
+
{
|
23 |
+
return Mage::getStoreConfig('flikebox/general/height');
|
24 |
+
}
|
25 |
+
public function getConnection()
|
26 |
+
{
|
27 |
+
return Mage::getStoreConfig('flikebox/general/connection');
|
28 |
+
}
|
29 |
+
public function getShowHeader()
|
30 |
+
{
|
31 |
+
return Mage::getStoreConfig('flikebox/general/show_header');
|
32 |
+
}
|
33 |
+
public function getShowFace()
|
34 |
+
{
|
35 |
+
return Mage::getStoreConfig('flikebox/general/show_headershow_face');
|
36 |
+
}
|
37 |
+
public function getShowStream()
|
38 |
+
{
|
39 |
+
return Mage::getStoreConfig('flikebox/general/show_stream');
|
40 |
+
}
|
41 |
+
}
|
app/code/community/Vivacity/Flikebox/Model/Layout.php
CHANGED
@@ -6,7 +6,8 @@ class Vivacity_Flikebox_Model_Layout
|
|
6 |
{
|
7 |
$option = array(
|
8 |
"left"=>'Left Column',
|
9 |
-
"right"=>'Right Column'
|
|
|
10 |
return $option;
|
11 |
}
|
12 |
|
6 |
{
|
7 |
$option = array(
|
8 |
"left"=>'Left Column',
|
9 |
+
"right"=>'Right Column',
|
10 |
+
"custom"=>'Custom');
|
11 |
return $option;
|
12 |
}
|
13 |
|
app/code/community/Vivacity/Flikebox/Model/Layout.php~
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Vivacity_Flikebox_Model_Layout
|
3 |
+
{
|
4 |
+
|
5 |
+
public function toOptionArray()
|
6 |
+
{
|
7 |
+
$option = array(
|
8 |
+
"left"=>'Left Column',
|
9 |
+
"right"=>'Right Column');
|
10 |
+
return $option;
|
11 |
+
}
|
12 |
+
|
13 |
+
}
|
14 |
+
?>
|
15 |
+
|
app/code/community/Vivacity/Flikebox/etc/config.xml
CHANGED
@@ -1,73 +1,73 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
-
<config>
|
3 |
-
<modules>
|
4 |
-
<Vivacity_Flikebox>
|
5 |
-
<version>1.0.
|
6 |
-
</Vivacity_Flikebox>
|
7 |
-
</modules>
|
8 |
-
<frontend>
|
9 |
-
<routers>
|
10 |
-
<flikebox>
|
11 |
-
<use>standard</use>
|
12 |
-
<args>
|
13 |
-
<module>Vivacity_Flikebox</module>
|
14 |
-
<frontName>flikebox</frontName>
|
15 |
-
</args>
|
16 |
-
</flikebox>
|
17 |
-
</routers>
|
18 |
-
<layout>
|
19 |
-
<updates>
|
20 |
-
<flikebox>
|
21 |
-
<file>flikebox.xml</file>
|
22 |
-
</flikebox>
|
23 |
-
</updates>
|
24 |
-
</layout>
|
25 |
-
</frontend>
|
26 |
-
<admin>
|
27 |
-
<routers>
|
28 |
-
<flikebox>
|
29 |
-
<use>admin</use>
|
30 |
-
<args>
|
31 |
-
<module>Vivacity_Flikebox</module>
|
32 |
-
<frontName>flikebox</frontName>
|
33 |
-
</args>
|
34 |
-
</flikebox>
|
35 |
-
</routers>
|
36 |
-
</admin>
|
37 |
-
<adminhtml>
|
38 |
-
<layout>
|
39 |
-
<updates>
|
40 |
-
<flikebox>
|
41 |
-
<file>flikebox.xml</file>
|
42 |
-
</flikebox>
|
43 |
-
</updates>
|
44 |
-
</layout>
|
45 |
-
</adminhtml>
|
46 |
-
<global>
|
47 |
-
<blocks>
|
48 |
-
<flikebox>
|
49 |
-
<class>Vivacity_Flikebox_Block</class>
|
50 |
-
</flikebox>
|
51 |
-
</blocks>
|
52 |
-
<helpers>
|
53 |
-
<flikebox>
|
54 |
-
<class>Vivacity_Flikebox_Helper</class>
|
55 |
-
</flikebox>
|
56 |
-
</helpers>
|
57 |
-
</global>
|
58 |
-
<default>
|
59 |
-
<flikebox>
|
60 |
-
<general>
|
61 |
-
<active>1</active>
|
62 |
-
<page_id>vivacityinfotech</page_id>
|
63 |
-
<width>195</width>
|
64 |
-
<height>400</height>
|
65 |
-
<connection>3</connection>
|
66 |
-
<show_header>1</show_header>
|
67 |
-
<show_face>1</show_face>
|
68 |
-
<show_stream>1</show_stream>
|
69 |
-
<col_layout>left</col_layout>
|
70 |
-
</general>
|
71 |
-
</flikebox>
|
72 |
-
</default>
|
73 |
-
</config>
|
1 |
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Vivacity_Flikebox>
|
5 |
+
<version>1.0.1</version>
|
6 |
+
</Vivacity_Flikebox>
|
7 |
+
</modules>
|
8 |
+
<frontend>
|
9 |
+
<routers>
|
10 |
+
<flikebox>
|
11 |
+
<use>standard</use>
|
12 |
+
<args>
|
13 |
+
<module>Vivacity_Flikebox</module>
|
14 |
+
<frontName>flikebox</frontName>
|
15 |
+
</args>
|
16 |
+
</flikebox>
|
17 |
+
</routers>
|
18 |
+
<layout>
|
19 |
+
<updates>
|
20 |
+
<flikebox>
|
21 |
+
<file>flikebox.xml</file>
|
22 |
+
</flikebox>
|
23 |
+
</updates>
|
24 |
+
</layout>
|
25 |
+
</frontend>
|
26 |
+
<admin>
|
27 |
+
<routers>
|
28 |
+
<flikebox>
|
29 |
+
<use>admin</use>
|
30 |
+
<args>
|
31 |
+
<module>Vivacity_Flikebox</module>
|
32 |
+
<frontName>flikebox</frontName>
|
33 |
+
</args>
|
34 |
+
</flikebox>
|
35 |
+
</routers>
|
36 |
+
</admin>
|
37 |
+
<adminhtml>
|
38 |
+
<layout>
|
39 |
+
<updates>
|
40 |
+
<flikebox>
|
41 |
+
<file>flikebox.xml</file>
|
42 |
+
</flikebox>
|
43 |
+
</updates>
|
44 |
+
</layout>
|
45 |
+
</adminhtml>
|
46 |
+
<global>
|
47 |
+
<blocks>
|
48 |
+
<flikebox>
|
49 |
+
<class>Vivacity_Flikebox_Block</class>
|
50 |
+
</flikebox>
|
51 |
+
</blocks>
|
52 |
+
<helpers>
|
53 |
+
<flikebox>
|
54 |
+
<class>Vivacity_Flikebox_Helper</class>
|
55 |
+
</flikebox>
|
56 |
+
</helpers>
|
57 |
+
</global>
|
58 |
+
<default>
|
59 |
+
<flikebox>
|
60 |
+
<general>
|
61 |
+
<active>1</active>
|
62 |
+
<page_id>vivacityinfotech</page_id>
|
63 |
+
<width>195</width>
|
64 |
+
<height>400</height>
|
65 |
+
<connection>3</connection>
|
66 |
+
<show_header>1</show_header>
|
67 |
+
<show_face>1</show_face>
|
68 |
+
<show_stream>1</show_stream>
|
69 |
+
<col_layout>left</col_layout>
|
70 |
+
</general>
|
71 |
+
</flikebox>
|
72 |
+
</default>
|
73 |
+
</config>
|
app/code/community/Vivacity/Flikebox/etc/config.xml~
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Vivacity_Flikebox>
|
5 |
+
<version>1.0.0</version>
|
6 |
+
</Vivacity_Flikebox>
|
7 |
+
</modules>
|
8 |
+
<frontend>
|
9 |
+
<routers>
|
10 |
+
<flikebox>
|
11 |
+
<use>standard</use>
|
12 |
+
<args>
|
13 |
+
<module>Vivacity_Flikebox</module>
|
14 |
+
<frontName>flikebox</frontName>
|
15 |
+
</args>
|
16 |
+
</flikebox>
|
17 |
+
</routers>
|
18 |
+
<layout>
|
19 |
+
<updates>
|
20 |
+
<flikebox>
|
21 |
+
<file>flikebox.xml</file>
|
22 |
+
</flikebox>
|
23 |
+
</updates>
|
24 |
+
</layout>
|
25 |
+
</frontend>
|
26 |
+
<admin>
|
27 |
+
<routers>
|
28 |
+
<flikebox>
|
29 |
+
<use>admin</use>
|
30 |
+
<args>
|
31 |
+
<module>Vivacity_Flikebox</module>
|
32 |
+
<frontName>flikebox</frontName>
|
33 |
+
</args>
|
34 |
+
</flikebox>
|
35 |
+
</routers>
|
36 |
+
</admin>
|
37 |
+
<adminhtml>
|
38 |
+
<layout>
|
39 |
+
<updates>
|
40 |
+
<flikebox>
|
41 |
+
<file>flikebox.xml</file>
|
42 |
+
</flikebox>
|
43 |
+
</updates>
|
44 |
+
</layout>
|
45 |
+
</adminhtml>
|
46 |
+
<global>
|
47 |
+
<blocks>
|
48 |
+
<flikebox>
|
49 |
+
<class>Vivacity_Flikebox_Block</class>
|
50 |
+
</flikebox>
|
51 |
+
</blocks>
|
52 |
+
<helpers>
|
53 |
+
<flikebox>
|
54 |
+
<class>Vivacity_Flikebox_Helper</class>
|
55 |
+
</flikebox>
|
56 |
+
</helpers>
|
57 |
+
</global>
|
58 |
+
<default>
|
59 |
+
<flikebox>
|
60 |
+
<general>
|
61 |
+
<active>1</active>
|
62 |
+
<page_id>vivacityinfotech</page_id>
|
63 |
+
<width>195</width>
|
64 |
+
<height>400</height>
|
65 |
+
<connection>3</connection>
|
66 |
+
<show_header>1</show_header>
|
67 |
+
<show_face>1</show_face>
|
68 |
+
<show_stream>1</show_stream>
|
69 |
+
<col_layout>left</col_layout>
|
70 |
+
</general>
|
71 |
+
</flikebox>
|
72 |
+
</default>
|
73 |
+
</config>
|
app/code/community/Vivacity/Flikebox/etc/system.xml
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
-
<tabs>
|
4 |
-
<vivacity_infotech>
|
5 |
-
<label>Vivacity InfoTech</label>
|
6 |
-
<sort_order>190</sort_order>
|
7 |
</vivacity_infotech>
|
8 |
</tabs>
|
9 |
<sections>
|
@@ -119,10 +119,13 @@
|
|
119 |
<show_in_default>1</show_in_default>
|
120 |
<show_in_website>1</show_in_website>
|
121 |
<show_in_store>1</show_in_store>
|
122 |
-
|
|
|
|
|
|
|
123 |
</fields>
|
124 |
</general>
|
125 |
</groups>
|
126 |
</flikebox>
|
127 |
</sections>
|
128 |
-
</config>
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
+
<tabs>
|
4 |
+
<vivacity_infotech>
|
5 |
+
<label>Vivacity InfoTech</label>
|
6 |
+
<sort_order>190</sort_order>
|
7 |
</vivacity_infotech>
|
8 |
</tabs>
|
9 |
<sections>
|
119 |
<show_in_default>1</show_in_default>
|
120 |
<show_in_website>1</show_in_website>
|
121 |
<show_in_store>1</show_in_store>
|
122 |
+
<comment><![CDATA[If you choose "Custom" Position, then please use short codes:<br>
|
123 |
+
For CMS Block: " {{block type="flikebox/Likebox"template="flikebox/like.phtml"}} " <br>
|
124 |
+
For Layout: " echo $this->getLayout()->createBlock('flikebox/Likebox')->setTemplate('flikebox/like.phtml')->toHtml(); "]]></comment>
|
125 |
+
</col_layout>
|
126 |
</fields>
|
127 |
</general>
|
128 |
</groups>
|
129 |
</flikebox>
|
130 |
</sections>
|
131 |
+
</config>
|
app/code/community/Vivacity/Flikebox/etc/system.xml~
ADDED
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<tabs>
|
4 |
+
<vivacity_infotech>
|
5 |
+
<label>Vivacity InfoTech</label>
|
6 |
+
<sort_order>190</sort_order>
|
7 |
+
</vivacity_infotech>
|
8 |
+
</tabs>
|
9 |
+
<sections>
|
10 |
+
<flikebox translate="label" module="flikebox">
|
11 |
+
<label>Facebook Like Box</label>
|
12 |
+
<tab>vivacity_infotech</tab>
|
13 |
+
<sort_order>340</sort_order>
|
14 |
+
<show_in_default>1</show_in_default>
|
15 |
+
<show_in_website>1</show_in_website>
|
16 |
+
<show_in_store>1</show_in_store>
|
17 |
+
<groups>
|
18 |
+
<flikepreview translate="label" module="flikebox">
|
19 |
+
<label>Find us on Facebook</label>
|
20 |
+
<frontend_type>text</frontend_type>
|
21 |
+
<sort_order>80</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 |
+
<comment>
|
26 |
+
<![CDATA[
|
27 |
+
<iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fvivacityinfotech&width&height=590&colorscheme=light&show_faces=true&header=true&stream=false&show_border=true&appId=1406798716268204" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:590px;" allowTransparency="true"></iframe>
|
28 |
+
|
29 |
+
]]>
|
30 |
+
</comment>
|
31 |
+
</flikepreview>
|
32 |
+
|
33 |
+
<general translate="label" module="flikebox">
|
34 |
+
<label>General Configuration</label>
|
35 |
+
<frontend_type>text</frontend_type>
|
36 |
+
<sort_order>1</sort_order>
|
37 |
+
<show_in_default>1</show_in_default>
|
38 |
+
<show_in_website>1</show_in_website>
|
39 |
+
<show_in_store>1</show_in_store>
|
40 |
+
<fields>
|
41 |
+
<active translate="label">
|
42 |
+
<label>Enable Module</label>
|
43 |
+
<frontend_type>select</frontend_type>
|
44 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
45 |
+
<sort_order>1</sort_order>
|
46 |
+
<show_in_default>1</show_in_default>
|
47 |
+
<show_in_website>1</show_in_website>
|
48 |
+
<show_in_store>1</show_in_store>
|
49 |
+
</active>
|
50 |
+
<page_id translate="label">
|
51 |
+
<label>Page ID</label>
|
52 |
+
<frontend_type>text</frontend_type>
|
53 |
+
<sort_order>2</sort_order>
|
54 |
+
<show_in_default>1</show_in_default>
|
55 |
+
<show_in_website>1</show_in_website>
|
56 |
+
<show_in_store>1</show_in_store>
|
57 |
+
<validate>required-entry</validate>
|
58 |
+
</page_id>
|
59 |
+
|
60 |
+
<width translate="label">
|
61 |
+
<label>Width</label>
|
62 |
+
<frontend_type>text</frontend_type>
|
63 |
+
<sort_order>3</sort_order>
|
64 |
+
<show_in_default>1</show_in_default>
|
65 |
+
<show_in_website>1</show_in_website>
|
66 |
+
<show_in_store>1</show_in_store>
|
67 |
+
<validate>required-entry validate-greater-than-zero</validate>
|
68 |
+
</width>
|
69 |
+
<height translate="label">
|
70 |
+
<label>Height</label>
|
71 |
+
<frontend_type>text</frontend_type>
|
72 |
+
<sort_order>4</sort_order>
|
73 |
+
<show_in_default>1</show_in_default>
|
74 |
+
<show_in_website>1</show_in_website>
|
75 |
+
<show_in_store>1</show_in_store>
|
76 |
+
<validate>required-entry validate-greater-than-zero</validate>
|
77 |
+
</height>
|
78 |
+
<connection translate="label">
|
79 |
+
<label>Connections</label>
|
80 |
+
<frontend_type>text</frontend_type>
|
81 |
+
<sort_order>5</sort_order>
|
82 |
+
<show_in_default>1</show_in_default>
|
83 |
+
<show_in_website>1</show_in_website>
|
84 |
+
<show_in_store>1</show_in_store>
|
85 |
+
<validate>required-entry validate-greater-than-zero</validate>
|
86 |
+
</connection>
|
87 |
+
<show_header translate="label">
|
88 |
+
<label>Show header</label>
|
89 |
+
<frontend_type>select</frontend_type>
|
90 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
91 |
+
<sort_order>6</sort_order>
|
92 |
+
<show_in_default>1</show_in_default>
|
93 |
+
<show_in_website>1</show_in_website>
|
94 |
+
<show_in_store>1</show_in_store>
|
95 |
+
</show_header>
|
96 |
+
<show_face translate="label">
|
97 |
+
<label>Show faces</label>
|
98 |
+
<frontend_type>select</frontend_type>
|
99 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
100 |
+
<sort_order>7</sort_order>
|
101 |
+
<show_in_default>1</show_in_default>
|
102 |
+
<show_in_website>1</show_in_website>
|
103 |
+
<show_in_store>1</show_in_store>
|
104 |
+
</show_face>
|
105 |
+
<show_stream translate="label">
|
106 |
+
<label>Show stream</label>
|
107 |
+
<frontend_type>select</frontend_type>
|
108 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
109 |
+
<sort_order>8</sort_order>
|
110 |
+
<show_in_default>1</show_in_default>
|
111 |
+
<show_in_website>1</show_in_website>
|
112 |
+
<show_in_store>1</show_in_store>
|
113 |
+
</show_stream>
|
114 |
+
<col_layout translate="label">
|
115 |
+
<label>Position</label>
|
116 |
+
<frontend_type>select</frontend_type>
|
117 |
+
<source_model>Vivacity_Flikebox_Model_Layout</source_model>
|
118 |
+
<sort_order>9</sort_order>
|
119 |
+
<show_in_default>1</show_in_default>
|
120 |
+
<show_in_website>1</show_in_website>
|
121 |
+
<show_in_store>1</show_in_store>
|
122 |
+
</col_layout>
|
123 |
+
<comment><![CDATA[If you choose "Custom" Position, then please use short codes:<br>
|
124 |
+
For CMS Block: " {{block type="flikebox/Likebox"template="flikebox/like.phtml"}} " <br>
|
125 |
+
For Layout: " $this->getLayout()->createBlock('flikebox/Likebox')->setTemplate('flikebox/like.phtml')->toHtml(); "]]></comment>
|
126 |
+
</fields>
|
127 |
+
</general>
|
128 |
+
</groups>
|
129 |
+
</flikebox>
|
130 |
+
</sections>
|
131 |
+
</config>
|
app/design/frontend/base/default/layout/flikebox.xml
CHANGED
@@ -26,4 +26,4 @@
|
|
26 |
</block>
|
27 |
</reference>
|
28 |
</default>
|
29 |
-
</layout>
|
26 |
</block>
|
27 |
</reference>
|
28 |
</default>
|
29 |
+
</layout>
|
app/design/frontend/base/default/template/flikebox/like.phtml
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$position = Mage::helper('flikebox')->getPosition();
|
3 |
+
if($position == "custom"){
|
4 |
+
echo $this->getLikebox();
|
5 |
+
}
|
6 |
+
?>
|
app/design/frontend/base/default/template/flikebox/like.phtml~
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$position = Mage::helper('flikebox')->getPosition();
|
3 |
+
if($position == "custom"){
|
4 |
+
echo $this->getLikebox();
|
5 |
+
}
|
6 |
+
?>
|
app/design/frontend/base/default/template/flikebox/likebox.phtml
CHANGED
@@ -1,3 +1,6 @@
|
|
1 |
<?php
|
|
|
|
|
2 |
echo $this->getLikebox();
|
|
|
3 |
?>
|
1 |
<?php
|
2 |
+
$position = Mage::helper('flikebox')->getPosition();
|
3 |
+
if($position != "custom"){
|
4 |
echo $this->getLikebox();
|
5 |
+
}
|
6 |
?>
|
app/design/frontend/base/default/template/flikebox/likebox.phtml~
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
//echo $this->getLikebox();
|
3 |
+
?>
|
package.xml
CHANGED
@@ -1,18 +1,20 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Facebook_Like_Box_In_Sidebar</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
-
<license
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Shows LikeBox of your FaceBook Page on your store for customers to easily follow you on FaceBook.</summary>
|
10 |
<description>Facebook Like Box Sidebar which will enable facebook like box along with fan list and stream in your magento store.</description>
|
11 |
-
<notes>
|
12 |
-
|
13 |
-
|
14 |
-
<
|
15 |
-
<
|
|
|
|
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Facebook_Like_Box_In_Sidebar</name>
|
4 |
+
<version>1.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
+
<license>OSL V3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Shows LikeBox of your FaceBook Page on your store for customers to easily follow you on FaceBook.</summary>
|
10 |
<description>Facebook Like Box Sidebar which will enable facebook like box along with fan list and stream in your magento store.</description>
|
11 |
+
<notes>New in this version:
|
12 |
+
1. Added feature to show FB Fan Box on CMS Block and Layout files.
|
13 |
+
2. Bug Fixes.</notes>
|
14 |
+
<authors><author><name>Team Vivacity</name><user>vivacityinfotech</user><email>vivacityinfotech.jaipur@gmail.com</email></author></authors>
|
15 |
+
<date>2015-12-08</date>
|
16 |
+
<time>10:46:44</time>
|
17 |
+
<contents><target name="magecommunity"><dir name="Vivacity"><dir name="Flikebox"><dir name="Block"><file name="Likebox.php" hash="b7190538852e0bf2edfa678eac3f6ea8"/><file name="Likebox.php~" hash="77811639c7bbcb8099188a70f676e6ff"/></dir><dir name="controllers"><file name="IndexController.php" hash="57f05f7053b5bd8346254764b47002eb"/></dir><dir name="etc"><file name="adminhtml.xml" hash="010e92546869e3f32d2a1fe71518f068"/><file name="config.xml" hash="511839a268323e1a9ede8e910845fb2e"/><file name="config.xml~" hash="9ba123140130561091a463ff0f04fe14"/><file name="system.xml" hash="a67550abc4ca0a217bb45e5e0deed47c"/><file name="system.xml~" hash="53c243881ca53f03374a75acdc459933"/></dir><dir name="Helper"><file name="Data.php" hash="2a0cf58b6f762bd1b06b94b2d215a92b"/><file name="Data.php~" hash="0f7c391d6a87fd3a51face0dfd7a3949"/></dir><dir name="Model"><file name="Layout.php" hash="ac4b144cd97b152f1fcbdd9134566fdb"/><file name="Layout.php~" hash="fd6eff5fb72869a6743ecaf0ca07eb03"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Vivacity_Flikebox.xml" hash="af817da4c67913a25c054bd2afd7383d"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="flikebox"><file name="likebox.phtml" hash="bca90897ffd3f4c60d7109a66db8ad92"/><file name="likebox.phtml~" hash="0e126f18099db3a7735756aa0667b881"/><file name="like.phtml" hash="a4f8e3c4120f3aab13d501a6f596f838"/><file name="like.phtml~" hash="a4f8e3c4120f3aab13d501a6f596f838"/></dir></dir><dir name="layout"><file name="flikebox.xml" hash="679f15244b5fbeb191db37f338e36378"/></dir></dir></dir></dir></target></contents>
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
</package>
|