Version Notes
V1.01 Fixed system configuration source model
Download this release
Release Info
Developer | Kalpesh Sakhareliya |
Extension | Kerss_Fblikebox |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
app/code/community/Kerss/Fblikebox/Model/System/Config/Source/Options.php
CHANGED
@@ -11,14 +11,26 @@
|
|
11 |
class Kerss_Fblikebox_Model_System_Config_Source_Options {
|
12 |
|
13 |
/**
|
14 |
-
*
|
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 |
|
11 |
class Kerss_Fblikebox_Model_System_Config_Source_Options {
|
12 |
|
13 |
/**
|
14 |
+
* Options getter
|
15 |
*
|
16 |
* @return array
|
17 |
*/
|
18 |
public function toOptionArray() {
|
19 |
return array(
|
20 |
+
array('value' => 'true', 'label' => Mage::helper('adminhtml')->__('Yes')),
|
21 |
+
array('value' => 'false', 'label' => Mage::helper('adminhtml')->__('No')),
|
22 |
+
);
|
23 |
+
}
|
24 |
+
|
25 |
+
/**
|
26 |
+
* Get options in "key-value" format
|
27 |
+
*
|
28 |
+
* @return array
|
29 |
+
*/
|
30 |
+
public function toArray() {
|
31 |
+
return array(
|
32 |
+
'true' => Mage::helper('adminhtml')->__('Yes'),
|
33 |
+
'false' => Mage::helper('adminhtml')->__('No'),
|
34 |
);
|
35 |
}
|
36 |
|
app/code/community/Kerss/Fblikebox/etc/system.xml
CHANGED
@@ -103,7 +103,7 @@
|
|
103 |
<fb_hide_cover translate="label">
|
104 |
<label>Hide Cover Photos</label>
|
105 |
<frontend_type>select</frontend_type>
|
106 |
-
<source_model>fblikebox/
|
107 |
<sort_order>70</sort_order>
|
108 |
<show_in_default>1</show_in_default>
|
109 |
<show_in_website>1</show_in_website>
|
@@ -113,7 +113,7 @@
|
|
113 |
<fb_show_faces translate="label">
|
114 |
<label>Show Friends Faces</label>
|
115 |
<frontend_type>select</frontend_type>
|
116 |
-
<source_model>fblikebox/
|
117 |
<sort_order>80</sort_order>
|
118 |
<show_in_default>1</show_in_default>
|
119 |
<show_in_website>1</show_in_website>
|
103 |
<fb_hide_cover translate="label">
|
104 |
<label>Hide Cover Photos</label>
|
105 |
<frontend_type>select</frontend_type>
|
106 |
+
<source_model>fblikebox/system_config_source_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>
|
113 |
<fb_show_faces translate="label">
|
114 |
<label>Show Friends Faces</label>
|
115 |
<frontend_type>select</frontend_type>
|
116 |
+
<source_model>fblikebox/system_config_source_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>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Kerss_Fblikebox</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -16,11 +16,11 @@ Features:
|
|
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>
|
20 |
<authors><author><name>Kalpesh Sakhareliya</name><user>kersstech</user><email>kersstech@gmail.com</email></author></authors>
|
21 |
-
<date>2016-10-
|
22 |
-
<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="
|
24 |
<compatible/>
|
25 |
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
|
26 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Kerss_Fblikebox</name>
|
4 |
+
<version>1.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
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>V1.01 Fixed system configuration source model</notes>
|
20 |
<authors><author><name>Kalpesh Sakhareliya</name><user>kersstech</user><email>kersstech@gmail.com</email></author></authors>
|
21 |
+
<date>2016-10-15</date>
|
22 |
+
<time>06:11:53</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="179a0c830371a16334c2883b03e93830"/><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="6d76c5e8dcf40fee7b79d8a9bf46b606"/><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>
|