Facebook_Like_Box_In_Sidebar - Version 1.0.2

Version Notes

New in version 1.0.2:
By using new version of facebook like box sidebar extension you can manage many things like:

1. We give a option for "small header" to manage the header from admin.
2. If you want Language of your choice on facebook like box then you can select from admin in "Language" field.
3. You can handle tabs like timeline, event & massages from admin.
4. "Hide Cover Photo" option for hide the cover photo.
5. You can handle facebook like box container width with "Adapt to plugin container width" option.
6. Fixed faces of customers option.
7. Fixed header option.

Download this release

Release Info

Developer Team Vivacity
Extension Facebook_Like_Box_In_Sidebar
Version 1.0.2
Comparing to
See all releases


Code changes from version 1.0.1 to 1.0.2

app/code/community/Vivacity/Flikebox/Block/Likebox.php CHANGED
@@ -8,9 +8,23 @@ class Vivacity_Flikebox_Block_Likebox extends Mage_Core_Block_Template
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
 
@@ -25,11 +39,24 @@ class Vivacity_Flikebox_Block_Likebox extends Mage_Core_Block_Template
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
 
@@ -44,12 +71,24 @@ class Vivacity_Flikebox_Block_Likebox extends Mage_Core_Block_Template
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 {
@@ -58,4 +97,4 @@ class Vivacity_Flikebox_Block_Likebox extends Mage_Core_Block_Template
58
 
59
  }
60
  }
61
- }
8
  public function test(){
9
 
10
  return "Testing";
11
+ }
12
+ /* protected function _construct()
13
+ {
14
+ parent::_construct();
15
+ $this->setTemplate('flikebox/likebox.phtml');
16
+ }
17
+ public function getLocale()
18
+ {
19
+ return Mage::app()->getStore()->getConfig(Mage_Core_Model_Locale::XML_PATH_DEFAULT_LOCALE);
20
+ }
21
+ public function getScheme()
22
+ {
23
+ return Mage::app()->getStore()->isCurrentlySecure() ? 'https:' : 'http:';
24
+ } */
25
+
26
  public function getLikebox(){
27
+
28
  $isActive = Mage::helper('flikebox')->isActive();
29
  $position = Mage::helper('flikebox')->getPosition();
30
 
39
  $width = $this->getStoreConfig($this->getWidth());
40
  $height = $this->getStoreConfig($this->getHeight());
41
 
42
+ $showHeader = $this->getStoreConfig($this->getShowHeader());
43
+ $showFace = $this->getStoreConfig($this->getShowFace());
44
+ //$showStream = $this->getStoreConfig($this->getShowStream());
45
+ /* added new 4 field 05-02-2016*/
46
+ $showSmallHeader = $this->getStoreConfig($this->getShowSmallHeader());
47
+ $HideCoverPhoto = $this->getStoreConfig($this->getHideCoverPhoto());
48
+ $AdaptContainerWidth = $this->getStoreConfig($this->getAdaptContainerWidth());
49
+ $Language = $this->getStoreConfig($this->getLanguage());
50
+ $Tabs = $this->getStoreConfig($this->getTabs());
51
+ $header = Mage::getStoreConfig('flikebox/general/show_header_text');
52
+ $data = "<div class='subtitlefb'><h2>".$header."</h2></div>";
53
+ if(Mage::getStoreConfig('flikebox/general/show_header') == 1){
54
+ return $data.'<iframe src="http://www.facebook.com/connect/connect.php?locale='.$Language.'&href=https://www.facebook.com/'.$pageId.'&connections='.$connections.'&header='.$showHeader.'&show_faces='.$showFace.'&small_header='.$showSmallHeader.'&hide_cover='.$HideCoverPhoto.'&tabs='.$Tabs.'&adapt_container_width='.$AdaptContainerWidth.'&width='.$width.'&height='.$height.'" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:'.$width.'px; height:'.$height.'px;" allowTransparency="true"></iframe>';
55
+ }
56
+ else{
57
+ return $data.'<iframe src="http://www.facebook.com/connect/connect.php?locale='.$Language.'&href=https://www.facebook.com/'.$pageId.'&connections='.$connections.'&header='.$showHeader.'&show_faces='.$showFace.'&small_header='.$showSmallHeader.'&hide_cover='.$HideCoverPhoto.'&tabs='.$Tabs.'&adapt_container_width='.$AdaptContainerWidth.'&width='.$width.'&height='.$height.'" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:'.$width.'px; height:'.$height.'px;" allowTransparency="true"></iframe>';
58
+
59
+ }
60
 
61
  } else {
62
 
71
  $width = Mage::helper('flikebox')->getWidth();
72
  $height = Mage::helper('flikebox')->getHeight();
73
 
74
+ $showHeader = Mage::helper('flikebox')->getShowHeader();
75
+ $showFace = Mage::helper('flikebox')->getShowFace();
76
+ // $showStream = Mage::helper('flikebox')->getShowStream();
77
+ /* added new three field 05-02-2016*/
78
+ $showSmallHeader = Mage::helper('flikebox')->getShowSmallHeader();
79
+ $HideCoverPhoto =Mage::helper('flikebox')->getHideCoverPhoto();
80
+ $AdaptContainerWidth =Mage::helper('flikebox')->getAdaptContainerWidth();
81
+ $Language = Mage::helper('flikebox')->getLanguage();
82
+ $Tabs = Mage::helper('flikebox')->getTabs();
83
+ $header = Mage::getStoreConfig('flikebox/general/show_header_text');
84
+ $data = "<div class='subtitlefb'><h2>".$header."</h2></div>";
85
+ if(Mage::getStoreConfig('flikebox/general/show_header') == 1){
86
+ return $data.'<iframe src="http://www.facebook.com/connect/connect.php?locale='.$Language.'&href=https://www.facebook.com/'.$pageId.'&connections='.$connections.'&header='.$showHeader.'&show_faces='.$showFace.'&small_header='.$showSmallHeader.'&hide_cover='.$HideCoverPhoto.'&tabs='.$Tabs.'&adapt_container_width='.$AdaptContainerWidth.'&width='.$width.'&height='.$height.'" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:'.$width.'px; height:'.$height.'px;" allowTransparency="true"></iframe>';
87
+ }
88
+ else{
89
+ return $data.'<iframe src="http://www.facebook.com/connect/connect.php?locale='.$Language.'&href=https://www.facebook.com/'.$pageId.'&connections='.$connections.'&header='.$showHeader.'&show_faces='.$showFace.'&small_header='.$showSmallHeader.'&hide_cover='.$HideCoverPhoto.'&tabs='.$Tabs.'&adapt_container_width='.$AdaptContainerWidth.'&width='.$width.'&height='.$height.'" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:'.$width.'px; height:'.$height.'px;" allowTransparency="true"></iframe>';
90
+
91
+ }
92
  }
93
 
94
  } else {
97
 
98
  }
99
  }
100
+ }
app/code/community/Vivacity/Flikebox/Block/Likebox.php~ DELETED
@@ -1,61 +0,0 @@
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
@@ -25,6 +25,10 @@ class Vivacity_Flikebox_Helper_Data extends Mage_Core_Helper_Abstract
25
  public function getConnection()
26
  {
27
  return Mage::getStoreConfig('flikebox/general/connection');
 
 
 
 
28
  }
29
  public function getShowHeader()
30
  {
@@ -37,5 +41,25 @@ class Vivacity_Flikebox_Helper_Data extends Mage_Core_Helper_Abstract
37
  public function getShowStream()
38
  {
39
  return Mage::getStoreConfig('flikebox/general/show_stream');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  }
41
  }
25
  public function getConnection()
26
  {
27
  return Mage::getStoreConfig('flikebox/general/connection');
28
+ }
29
+ public function getShowHeaderText()
30
+ {
31
+ return Mage::getStoreConfig('flikebox/general/show_header_text');
32
  }
33
  public function getShowHeader()
34
  {
41
  public function getShowStream()
42
  {
43
  return Mage::getStoreConfig('flikebox/general/show_stream');
44
+ }
45
+ public function getShowSmallHeader()
46
+ {
47
+ return Mage::getStoreConfig('flikebox/general/show_small_header');
48
+ }
49
+ public function getHideCoverPhoto()
50
+ {
51
+ return Mage::getStoreConfig('flikebox/general/hide_cover_photo');
52
+ }
53
+ public function getAdaptContainerWidth()
54
+ {
55
+ return Mage::getStoreConfig('flikebox/general/adapt_container_width');
56
+ }
57
+ public function getLanguage()
58
+ {
59
+ return Mage::getStoreConfig('flikebox/general/language');
60
+ }
61
+ public function getTabs()
62
+ {
63
+ return Mage::getStoreConfig('flikebox/general/tabs');
64
  }
65
  }
app/code/community/Vivacity/Flikebox/Helper/Data.php~ DELETED
@@ -1,41 +0,0 @@
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~ DELETED
@@ -1,15 +0,0 @@
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/Model/System/Config/Language.php ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vivacity_Flikebox_Model_System_Config_Language
3
+ {
4
+ public function toOptionArray()
5
+ {
6
+ return array(
7
+ array('value' => 'af_ZA', 'label' =>'Afrikaans'),
8
+ array('value' => 'sq_AL', 'label' => 'Albanian - shqiptar'),
9
+ array('value' => 'eu_ES', 'label' =>'Basque - Euskal'),
10
+ array('value' => 'ar_AR', 'label' =>'Arabic - العربية&#8236;'),
11
+ array('value' => 'hy_AM', 'label' =>'Armenian - հայերեն'),
12
+ array('value' => 'ay_BO', 'label' =>'Aymara'),
13
+ array('value' => 'az_AZ', 'label' =>'Azeri'),
14
+ array('value' => 'be_BY', 'label' =>'Belarusian - беларускі'),
15
+ array('value' => 'bn_IN', 'label' =>'Bengali - বাংলা'),
16
+ array('value' => 'bs_BA', 'label' =>'Bosnian - bosanski'),
17
+ array('value' => 'bg_BG', 'label' =>'Bulgarian - Български'),
18
+ array('value' => 'ca_ES', 'label' =>'Catalan - Català'),
19
+ array('value' => 'ck_US', 'label' =>'Cherokee'),
20
+ array('value' => 'hr_HR', 'label' =>'Croatian - Hrvatska'),
21
+ array('value' => 'cs_CZ', 'label' =>'Czech - České'),
22
+ array('value' => 'da_DK', 'label' =>'Danish - dansk'),
23
+ array('value' => 'nl_NL', 'label' =>'Dutch - Nederlands'),
24
+ array('value' => 'nl_BE', 'label' =>'Dutch (Belgi?)'),
25
+ array('value' => 'en_GB', 'label' =>'English (UK)'),
26
+ array('value' => 'en_PI', 'label' =>'English (Pirate)'),
27
+ array('value' => 'en_UD', 'label' =>'English (Upside Down)'),
28
+ array('value' => 'en_US', 'label' =>'English (US)'),
29
+ array('value' => 'eo_EO', 'label' =>'Esperanto'),
30
+ array('value' => 'et_EE', 'label' =>'Estonian - Eesti'),
31
+ array('value' => 'fo_FO', 'label' =>'Faroese'),
32
+ array('value' => 'tl_PH', 'label' =>'Filipino - Pilipino'),
33
+ array('value' => 'fi_FI', 'label' =>'Finnish - Suomi'),
34
+ array('value' => 'fr_CA', 'label' =>'French (Canada) - Français (Canada)'),
35
+ array('value' => 'fr_FR', 'label' =>'Galician - Galego'),
36
+ array('value' => 'ka_GE', 'label' =>'Georgian - ქართული'),
37
+ array('value' => 'de_DE', 'label' =>'German - German'),
38
+ array('value' => 'el_GR', 'label' =>'Greek - Ελληνική'),
39
+ array('value' => 'gn_PY', 'label' =>'Guaran'),
40
+ array('value' => 'gu_IN', 'label' =>'Gujarati - ગુજરાતી'),
41
+ array('value' => 'he_IL', 'label' =>'Hebrew - עברית'),
42
+ array('value' => 'hi_IN', 'label' =>'Hindi - हिन्दी'),
43
+ array('value' => 'hu_HU', 'label' =>'Hungarian - magyar'),
44
+ array('value' => 'is_IS', 'label' =>'Icelandic - íslenska'),
45
+ array('value' => 'id_ID', 'label' =>'Indonesian'),
46
+ array('value' => 'ga_IE', 'label' =>'Irish - Gaeilge'),
47
+ array('value' => 'it_IT', 'label' =>'Italian - italiano'),
48
+ array('value' => 'ja_JP', 'label' =>'Japanese - 日本の'),
49
+ array('value' => 'jv_ID', 'label' =>'Javanese - Jawa'),
50
+ array('value' => 'kn_IN', 'label' =>'Kannada - ಕನ್ನಡ'),
51
+ array('value' => 'kk_KZ', 'label' =>'Kazakh'),
52
+ array('value' => 'km_KmH', 'label' =>'Khmer - ភាសាខ្មែរ'),
53
+ array('value' => 'tl_ST', 'label' =>'Klingon'),
54
+ array('value' => 'ko_KR', 'label' =>'Korean - 한국어'),
55
+ array('value' => 'ku_TR', 'label' =>'Kurdish'),
56
+ array('value' => 'la_VA', 'label' =>'Latin'),
57
+ array('value' => 'lv_LV', 'label' =>'Latvian - Latvijas'),
58
+ array('value' => 'fb_LT', 'label' =>'Leet Speak'),
59
+ array('value' => 'li_NL', 'label' =>'Limburgish'),
60
+ array('value' => 'lt_LT', 'label' =>'Lithuanian - Lietuvos'),
61
+ array('value' => 'mk_MK', 'label' =>'Macedonian - македонски'),
62
+ array('value' => 'mg_MG', 'label' =>'Malagasy'),
63
+ array('value' => 'ms_MY', 'label' =>'Malay - Melayu'),
64
+ array('value' => 'ml_IN', 'label' =>'Maltese - Malti'),
65
+ array('value' => 'mr_IN', 'label' =>'Marathi - मराठी'),
66
+ array('value' => 'mn_MN', 'label' =>'Mongolian - Монгол Улсын'),
67
+ array('value' => 'ne_NP', 'label' =>'Nepali - नेपाली'),
68
+ array('value' => 'se_NO', 'label' =>'Northern S?mi'),
69
+ array('value' => 'nb_NO', 'label' =>'Norwegian (bokmal)'),
70
+ array('value' => 'nn_NO', 'label' =>'Norwegian (nynorsk)'),
71
+ array('value' => 'ps_AF', 'label' =>'Pashto'),
72
+ array('value' => 'fa_IR', 'label' =>'Persian - فارسی'),
73
+ array('value' => 'pl_PL', 'label' =>'Polish - Polskie'),
74
+ array('value' => 'pt_BR', 'label' =>'Portuguese (Brazil)'),
75
+ array('value' => 'pt_PT', 'label' =>'Portuguese (Portugal)'),
76
+ array('value' => 'pa_IN', 'label' =>'Punjabi - ਪੰਜਾਬੀ'),
77
+ array('value' => 'qu_PE', 'label' =>'Quechua'),
78
+ array('value' => 'ro_RO', 'label' =>'Romanian - română'),
79
+ array('value' => 'rm_CH', 'label' =>'Romansh'),
80
+ array('value' => 'ru_RU', 'label' =>'Russian - русский'),
81
+ array('value' => 'sa_IN', 'label' =>'Sanskrit'),
82
+ array('value' => 'sr_RS', 'label' =>'Serbian - Српска'),
83
+ array('value' => 'zh_CN', 'label' =>'Simplified Chinese (China) - 简体中文(中国)'),
84
+ array('value' => 'sk_SK', 'label' =>'Slovak - slovenský'),
85
+ array('value' => 'sl_SI', 'label' =>'Slovenian - slovenščina'),
86
+ array('value' => 'so_SO', 'label' =>'Somali'),
87
+ array('value' => 'es_LA', 'label' =>'Spanish - Español'),
88
+ array('value' => 'es_CL', 'label' =>'Spanish (Chile)'),
89
+ array('value' => 'es_CO', 'label' =>'Spanish (Colombia)'),
90
+ array('value' => 'es_MX', 'label' =>'Spanish (Mexico)'),
91
+ array('value' => 'es_ES', 'label' =>'Spanish (Spain)'),
92
+ array('value' => 'sv_SE', 'label' =>'Swedish - svenska'),
93
+ array('value' => 'sy_SY', 'label' =>'Syriac'),
94
+ array('value' => 'tg_TJ', 'label' =>'Tajik'),
95
+ array('value' => 'ta_IN', 'label' =>'Tamil - தமிழ்'),
96
+ array('value' => 'tt_RU', 'label' =>'Tatar'),
97
+ array('value' => 'te_IN', 'label' =>'Telugu - తెలుగు'),
98
+ array('value' => 'th_TH', 'label' =>'Thai - ไทย'),
99
+ array('value' => 'zh_HK', 'label' =>'Traditional Chinese (Hong Kong)'),
100
+ array('value' => 'zh_TW', 'label' =>'Traditional Chinese (Taiwan)'),
101
+ array('value' => 'tr_TR', 'label' =>'Turkish - türk'),
102
+ array('value' => 'uk_UA', 'label' =>'Ukrainian - Український'),
103
+ array('value' => 'ur_PK', 'label' =>'Urdu - اردو'),
104
+ array('value' => 'uz_UZ', 'label' =>'Uzbek'),
105
+ array('value' => 'vi_VN', 'label' =>'Vietnamese - Việt'),
106
+ array('value' => 'cy_GB', 'label' =>'Welsh - Cymraeg'),
107
+ array('value' => 'xh_ZA', 'label' =>'Xhosa'),
108
+ array('value' => 'yi_DE', 'label' =>'Yiddish - ייִדיש'),
109
+ array('value' => 'zu_ZA', 'label' =>'Zulu'),
110
+ );
111
+ }
112
+ }
app/code/community/Vivacity/Flikebox/Model/System/Config/Yesno.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Vivacity_Flikebox_Model_System_Config_Yesno
3
+ {
4
+
5
+ /**
6
+ * Options getter
7
+ *
8
+ * @return array
9
+ */
10
+ public function toOptionArray()
11
+ {
12
+ $option = array(
13
+ "true"=>'Yes',
14
+ "false"=>'No');
15
+ return $option;
16
+ }
17
+
18
+ }
app/code/community/Vivacity/Flikebox/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Vivacity_Flikebox>
5
- <version>1.0.1</version>
6
  </Vivacity_Flikebox>
7
  </modules>
8
  <frontend>
@@ -43,7 +43,7 @@
43
  </updates>
44
  </layout>
45
  </adminhtml>
46
- <global>
47
  <blocks>
48
  <flikebox>
49
  <class>Vivacity_Flikebox_Block</class>
@@ -63,10 +63,16 @@
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>
2
  <config>
3
  <modules>
4
  <Vivacity_Flikebox>
5
+ <version>1.0.2</version>
6
  </Vivacity_Flikebox>
7
  </modules>
8
  <frontend>
43
  </updates>
44
  </layout>
45
  </adminhtml>
46
+ <global>
47
  <blocks>
48
  <flikebox>
49
  <class>Vivacity_Flikebox_Block</class>
63
  <width>195</width>
64
  <height>400</height>
65
  <connection>3</connection>
66
+ <show_header_text>Facebook Like Box</show_header_text>
67
  <show_header>1</show_header>
68
  <show_face>1</show_face>
69
+ <!--<show_stream>1</show_stream>-->
70
  <col_layout>left</col_layout>
71
+ <show_small_header>1</show_small_header>
72
+ <hide_cover_photo>0</hide_cover_photo>
73
+ <adapt_container_width>1</adapt_container_width>
74
+ <tabs>timeline</tabs>
75
+ <language>en_US</language>
76
  </general>
77
  </flikebox>
78
  </default>
app/code/community/Vivacity/Flikebox/etc/config.xml~ DELETED
@@ -1,73 +0,0 @@
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
@@ -7,7 +7,7 @@
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>
@@ -24,7 +24,7 @@
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&amp;width&amp;height=590&amp;colorscheme=light&amp;show_faces=true&amp;header=true&amp;stream=false&amp;show_border=true&amp;appId=1406798716268204" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:590px;" allowTransparency="true"></iframe>
28
 
29
  ]]>
30
  </comment>
@@ -84,10 +84,18 @@
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>
@@ -96,35 +104,103 @@
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
- <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>
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>
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&amp;width&amp;height=590&amp;colorscheme=light&amp;show_faces=true&amp;tabs=timeline,events,messages; header=true&amp;stream=false&amp;show_border=true&amp;appId=1406798716268204" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:590px;" allowTransparency="true"></iframe>
28
 
29
  ]]>
30
  </comment>
84
  <show_in_store>1</show_in_store>
85
  <validate>required-entry validate-greater-than-zero</validate>
86
  </connection>
87
+ <show_header_text translate="label">
88
+ <label>Header</label>
89
+ <frontend_type>text</frontend_type>
90
+ <sort_order>5</sort_order>
91
+ <show_in_default>1</show_in_default>
92
+ <show_in_website>1</show_in_website>
93
+ <show_in_store>1</show_in_store>
94
+ </show_header_text>
95
  <show_header translate="label">
96
  <label>Show header</label>
97
  <frontend_type>select</frontend_type>
98
+ <source_model>adminhtml/System_Config_Source_Yesno</source_model>
99
  <sort_order>6</sort_order>
100
  <show_in_default>1</show_in_default>
101
  <show_in_website>1</show_in_website>
104
  <show_face translate="label">
105
  <label>Show faces</label>
106
  <frontend_type>select</frontend_type>
107
+ <source_model>Vivacity_Flikebox_Model_System_Config_Yesno</source_model>
108
  <sort_order>7</sort_order>
109
  <show_in_default>1</show_in_default>
110
  <show_in_website>1</show_in_website>
111
  <show_in_store>1</show_in_store>
112
  </show_face>
113
+ <!--<show_stream translate="label">
114
  <label>Show stream</label>
115
  <frontend_type>select</frontend_type>
116
+ <source_model>Vivacity_Flikebox_Model_System_Config_Yesno</source_model>
117
  <sort_order>8</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
+ </show_stream>-->
122
+ <show_small_header translate="label">
123
+ <label>Show Small Header</label>
124
+ <frontend_type>select</frontend_type>
125
+ <source_model>Vivacity_Flikebox_Model_System_Config_Yesno</source_model>
126
+ <sort_order>9</sort_order>
127
+ <show_in_default>1</show_in_default>
128
+ <show_in_website>1</show_in_website>
129
+ <show_in_store>1</show_in_store>
130
+ </show_small_header>
131
+ <hide_cover_photo translate="label">
132
+ <label>Hide Cover Photo</label>
133
+ <frontend_type>select</frontend_type>
134
+ <source_model>Vivacity_Flikebox_Model_System_Config_Yesno</source_model>
135
+ <sort_order>10</sort_order>
136
+ <show_in_default>1</show_in_default>
137
+ <show_in_website>1</show_in_website>
138
+ <show_in_store>1</show_in_store>
139
+ </hide_cover_photo>
140
+ <adapt_container_width translate="label">
141
+ <label>Adapt to plugin container width</label>
142
+ <frontend_type>select</frontend_type>
143
+ <source_model>Vivacity_Flikebox_Model_System_Config_Yesno</source_model>
144
+ <sort_order>11</sort_order>
145
+ <show_in_default>1</show_in_default>
146
+ <show_in_website>1</show_in_website>
147
+ <show_in_store>1</show_in_store>
148
+ </adapt_container_width>
149
+ <language translate="label">
150
+ <label>Language</label>
151
+ <frontend_type>select</frontend_type>
152
+ <source_model>Vivacity_Flikebox_Model_System_Config_Language</source_model>
153
+ <sort_order>12</sort_order>
154
+ <show_in_default>1</show_in_default>
155
+ <show_in_website>1</show_in_website>
156
+ <show_in_store>1</show_in_store>
157
+ </language>
158
+ <tabs translate="label">
159
+ <label>Tabs</label>
160
+ <frontend_type>text</frontend_type>
161
+ <sort_order>13</sort_order>
162
+ <show_in_default>1</show_in_default>
163
+ <show_in_website>1</show_in_website>
164
+ <show_in_store>1</show_in_store>
165
+ <comment><![CDATA[You can now have timeline, events and messages tabs on the Extension.<br/>
166
+ If you want to show tabs under your facebook like box,<br/>
167
+ Then add these three tab above in comma separate like:<br/>timeline,events,messages<br/>
168
+ You can also use one of three tabs to show only one tab like : timeline
169
+ ]]></comment>
170
+ </tabs>
171
  <col_layout translate="label">
172
  <label>Position</label>
173
  <frontend_type>select</frontend_type>
174
  <source_model>Vivacity_Flikebox_Model_Layout</source_model>
175
+ <sort_order>14</sort_order>
176
  <show_in_default>1</show_in_default>
177
  <show_in_website>1</show_in_website>
178
  <show_in_store>1</show_in_store>
179
+ <comment></comment>
 
 
180
  </col_layout>
181
+ </fields>
182
  </general>
183
+ <setup_instruction translate="label comment">
184
+ <label> Setup Instruction </label>
185
+ <sort_order>70</sort_order>
186
+ <show_in_default>1</show_in_default>
187
+ <show_in_website>1</show_in_website>
188
+ <show_in_store>1</show_in_store>
189
+ <comment>
190
+ <![CDATA[<p>If you want to choose "Custom" position, then please use the following code:</p>
191
+ <p>For display your Facebook like box anywhere in your static block OR CMS pages then you can use the following code:<br/>
192
+ <span style="font-family: 'Courier New', Courier, monospace; font-size: 11px;">{{block type="flikebox/Likebox"template="flikebox/like.phtml"}} </span></p>
193
+ <p>For display your Facebook like box anywhere in your template files then you can use the following code:<br/>
194
+ <span style="font-family: 'Courier New', Courier, monospace; font-size: 11px;"> echo $this->getLayout()->createBlock('flikebox/Likebox')->setTemplate('flikebox/like.phtml')->toHtml();</span> <p>]]>
195
+ <![CDATA[ <br/>
196
+ <p><b>Note:</b>
197
+ If you are using Magento 1.9.2.2 then after installation of Facebook like box extension please go on Admin Panel > System > Permissions > Blocks > Add New Block.
198
+ Now please enter 'flikebox/Likebox' in 'Block Name' field and choose 'Yes' in 'Is Allowed'. It's recommended to display Facebook like box on static block OR CMS pages.
199
+ </p>
200
+ ]]>
201
+
202
+ </comment>
203
+ </setup_instruction>
204
  </groups>
205
  </flikebox>
206
  </sections>
app/code/community/Vivacity/Flikebox/etc/system.xml~ DELETED
@@ -1,131 +0,0 @@
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&amp;width&amp;height=590&amp;colorscheme=light&amp;show_faces=true&amp;header=true&amp;stream=false&amp;show_border=true&amp;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
@@ -3,26 +3,38 @@
3
  <default>
4
  <reference name="left">
5
  <block type="flikebox/likebox" name="left.flikebox.likebox" template="flikebox/likebox.phtml">
6
- <action method="setData"><name>position</name><value>left</value></action>
7
- <action method="setData"><name>page_id</name><value>flikebox/general/page_id</value></action>
8
- <action method="setData"><name>width</name><value>flikebox/general/width</value></action>
9
  <action method="setData"><name>connection</name><value>flikebox/general/connection</value></action>
10
  <action method="setData"><name>height</name><value>flikebox/general/height</value></action>
 
11
  <action method="setData"><name>show_header</name><value>flikebox/general/show_header</value></action>
12
- <action method="setData"><name>show_face</name><value>flikebox/general/show_face</value></action>
13
- <action method="setData"><name>show_stream</name><value>flikebox/general/show_stream</value></action>
 
 
 
 
 
14
  </block>
15
  </reference>
16
  <reference name="right">
17
  <block type="flikebox/likebox" name="right.flikebox.likebox" template="flikebox/likebox.phtml">
18
- <action method="setData"><name>position</name><value>right</value></action>
19
- <action method="setData"><name>page_id</name><value>flikebox/general/page_id</value></action>
20
- <action method="setData"><name>width</name><value>flikebox/general/width</value></action>
21
  <action method="setData"><name>height</name><value>flikebox/general/height</value></action>
22
  <action method="setData"><name>connection</name><value>flikebox/general/connection</value></action>
 
23
  <action method="setData"><name>show_header</name><value>flikebox/general/show_header</value></action>
24
- <action method="setData"><name>show_face</name><value>flikebox/general/show_face</value></action>
25
- <action method="setData"><name>show_stream</name><value>flikebox/general/show_stream</value></action>
 
 
 
 
 
26
  </block>
27
  </reference>
28
  </default>
3
  <default>
4
  <reference name="left">
5
  <block type="flikebox/likebox" name="left.flikebox.likebox" template="flikebox/likebox.phtml">
6
+ <action method="setData"><name>position</name><value>left</value></action>
7
+ <action method="setData"><name>page_id</name><value>flikebox/general/page_id</value></action>
8
+ <action method="setData"><name>width</name><value>flikebox/general/width</value></action>
9
  <action method="setData"><name>connection</name><value>flikebox/general/connection</value></action>
10
  <action method="setData"><name>height</name><value>flikebox/general/height</value></action>
11
+ <action method="setData"><name>show_header_text</name><value>flikebox/general/show_header_text</value></action>
12
  <action method="setData"><name>show_header</name><value>flikebox/general/show_header</value></action>
13
+ <action method="setData"><name>show_face</name><value>flikebox/general/show_face</value></action>
14
+ <action method="setData"><name>show_small_header</name><value>flikebox/general/show_small_header</value></action>
15
+ <action method="setData"><name>show_stream</name><value>flikebox/general/show_stream</value></action>
16
+ <action method="setData"><name>hide_cover_photo</name><value>flikebox/general/hide_cover_photo</value></action>
17
+ <action method="setData"><name>adapt_container_width</name><value>flikebox/general/adapt_container_width</value></action>
18
+ <action method="setData"><name>language</name><value>flikebox/general/language</value></action>
19
+ <action method="setData"><name>tabs</name><value>flikebox/general/tabs</value></action>
20
  </block>
21
  </reference>
22
  <reference name="right">
23
  <block type="flikebox/likebox" name="right.flikebox.likebox" template="flikebox/likebox.phtml">
24
+ <action method="setData"><name>position</name><value>right</value></action>
25
+ <action method="setData"><name>page_id</name><value>flikebox/general/page_id</value></action>
26
+ <action method="setData"><name>width</name><value>flikebox/general/width</value></action>
27
  <action method="setData"><name>height</name><value>flikebox/general/height</value></action>
28
  <action method="setData"><name>connection</name><value>flikebox/general/connection</value></action>
29
+ <action method="setData"><name>show_header_text</name><value>flikebox/general/show_header_text</value></action>
30
  <action method="setData"><name>show_header</name><value>flikebox/general/show_header</value></action>
31
+ <action method="setData"><name>show_face</name><value>flikebox/general/show_face</value></action>
32
+ <action method="setData"><name>show_small_header</name><value>flikebox/general/show_small_header</value></action>
33
+ <action method="setData"><name>show_stream</name><value>flikebox/general/show_stream</value></action>
34
+ <action method="setData"><name>hide_cover_photo</name><value>flikebox/general/hide_cover_photo</value></action>
35
+ <action method="setData"><name>adapt_container_width</name><value>flikebox/general/adapt_container_width</value></action>
36
+ <action method="setData"><name>language</name><value>flikebox/general/language</value></action>
37
+ <action method="setData"><name>tabs</name><value>flikebox/general/tabs</value></action>
38
  </block>
39
  </reference>
40
  </default>
app/design/frontend/base/default/template/flikebox/like.phtml~ DELETED
@@ -1,6 +0,0 @@
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,6 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <?php
2
- $position = Mage::helper('flikebox')->getPosition();
3
  if($position != "custom"){
4
  echo $this->getLikebox();
5
  }
6
  ?>
 
 
 
 
1
+ <!-- Facebook Like Product Button BEGIN - load the SDK asynchronously -->
2
+ <!--<div id="fb-root"></div>
3
+ <script>
4
+ /* <![CDATA[ */
5
+ window.fbAsyncInit = function() {
6
+ FB.init({appId: '1386792571543845', status: true, cookie: true,
7
+ xfbml: true});
8
+ };
9
+ (function() {
10
+ var e = document.createElement('script'); e.async = true;
11
+ e.src = document.location.protocol + '<?php echo $this->getScheme() ?>' +
12
+ '//connect.facebook.net/<?php echo $this->getLocale() ?>/all.js';
13
+ document.getElementById('fb-root').appendChild(e);
14
+ }());
15
+ /* ]]> */
16
+ </script>-->
17
+ <!-- Facebook Like Product Button END -->
18
  <?php
19
+ $position = Mage::helper('flikebox')->getPosition();
20
  if($position != "custom"){
21
  echo $this->getLikebox();
22
  }
23
  ?>
24
+
25
+
26
+
27
+
app/design/frontend/base/default/template/flikebox/likebox.phtml~ DELETED
@@ -1,3 +0,0 @@
1
- <?php
2
- //echo $this->getLikebox();
3
- ?>
 
 
 
package.xml CHANGED
@@ -1,20 +1,29 @@
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:&#xD;
12
- 1. Added feature to show FB Fan Box on CMS Block and Layout files.&#xD;
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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Facebook_Like_Box_In_Sidebar</name>
4
+ <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license>OSL V3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>This extension is now available as a&#xD;
10
+ Facebook Like Box In Sidebar on your store for customers to easily like &amp; share you on facebook.</summary>
11
+ <description>Facebook Like Box Sidebar which will enable facebook like box along with fan list and tabs in your magento store.</description>
12
+ <notes>New in version 1.0.2:&#xD;
13
+ By using new version of facebook like box sidebar extension you can manage many things like:&#xD;
14
+ &#xD;
15
+ 1. We give a option for "small header" to manage the header from admin.&#xD;
16
+ 2. If you want Language of your choice on facebook like box then you can select from admin in "Language" field.&#xD;
17
+ 3. You can handle tabs like timeline, event &amp; massages from admin.&#xD;
18
+ 4. "Hide Cover Photo" option for hide the cover photo.&#xD;
19
+ 5. You can handle facebook like box container width with "Adapt to plugin container width" option. &#xD;
20
+ 6. Fixed faces of customers option.&#xD;
21
+ 7. Fixed header option.&#xD;
22
+ </notes>
23
  <authors><author><name>Team Vivacity</name><user>vivacityinfotech</user><email>vivacityinfotech.jaipur@gmail.com</email></author></authors>
24
+ <date>2016-02-10</date>
25
+ <time>10:05:50</time>
26
+ <contents><target name="mageetc"><dir name="modules"><file name="Vivacity_Flikebox.xml" hash="af817da4c67913a25c054bd2afd7383d"/></dir></target><target name="magecommunity"><dir name="Vivacity"><dir name="Flikebox"><dir name="Block"><file name="Likebox.php" hash="2770622ff9ab7c592d0cb3883c7c8fe4"/></dir><dir name="Helper"><file name="Data.php" hash="7dbe2da8b47f5636903d1ec05f5bbeca"/></dir><dir name="Model"><file name="Layout.php" hash="ac4b144cd97b152f1fcbdd9134566fdb"/><dir name="System"><dir name="Config"><file name="Language.php" hash="99e079d1c49d2549d3d57033038c60c3"/><file name="Yesno.php" hash="7500cdbd6bd677b22bed9a05f2e7f548"/></dir></dir></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="f35586c7ef3b532e3c64a0dc22c8b307"/><file name="system.xml" hash="0705fe437bb52a19154960081aad9d11"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="flikebox.xml" hash="c9c1e800fcc152603296a718b1b8faa7"/></dir><dir name="template"><dir name="flikebox"><file name="like.phtml" hash="a4f8e3c4120f3aab13d501a6f596f838"/><file name="likebox.phtml" hash="a4116401baee5d77cd1b201512d7bce8"/></dir></dir></dir></dir></dir></target></contents>
27
  <compatible/>
28
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
29
  </package>