Version Notes
First extension release.
Download this release
Release Info
Developer | Magento Core Team |
Extension | Magefast_FBsimple |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/community/Magefast/FBsimple/Helper/Data.php +23 -0
- app/code/community/Magefast/FBsimple/controllers/IndexController.php +16 -0
- app/code/community/Magefast/FBsimple/etc/config.xml +68 -0
- app/code/community/Magefast/FBsimple/etc/system.xml +59 -0
- app/design/frontend/default/default/layout/fbsimple.xml +11 -0
- app/design/frontend/default/default/template/fbsimple/content.phtml +9 -0
- app/etc/modules/Magefast_FBsimple.xml +9 -0
- app/locale/ru_RU/Magefast_FBsimple.csv +7 -0
- app/locale/uk_UA/Magefast_FBsimple.csv +7 -0
- package.xml +18 -0
app/code/community/Magefast/FBsimple/Helper/Data.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Magefast_FBsimple_Helper_Data extends Mage_Core_Helper_Abstract {
|
3 |
+
|
4 |
+
public function isActive() {
|
5 |
+
return Mage::getStoreConfig('fbsimple/general/active');
|
6 |
+
}
|
7 |
+
|
8 |
+
|
9 |
+
public function getTitle() {
|
10 |
+
return Mage::getStoreConfig('fbsimple/general/title');
|
11 |
+
}
|
12 |
+
|
13 |
+
|
14 |
+
public function getCmsBlock() {
|
15 |
+
return Mage::getStoreConfig('fbsimple/general/cms_block');
|
16 |
+
}
|
17 |
+
|
18 |
+
|
19 |
+
public function test() {
|
20 |
+
return 'test';
|
21 |
+
}
|
22 |
+
|
23 |
+
}
|
app/code/community/Magefast/FBsimple/controllers/IndexController.php
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Magefast_FBsimple_IndexController extends Mage_Core_Controller_Front_Action {
|
3 |
+
|
4 |
+
public function indexAction() {
|
5 |
+
|
6 |
+
if (Mage::helper('fbsimple')->isActive()) {
|
7 |
+
$this->loadLayout();
|
8 |
+
$this->getLayout()->getBlock('head')->setTitle(Mage::helper('fbsimple')->getTitle());
|
9 |
+
$this->_initLayoutMessages('customer/session');
|
10 |
+
$this->renderLayout();
|
11 |
+
} /* else {
|
12 |
+
$this->_redirectUrl(Mage::helper('core/url')->getHomeUrl());
|
13 |
+
}*/
|
14 |
+
}
|
15 |
+
|
16 |
+
}
|
app/code/community/Magefast/FBsimple/etc/config.xml
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Magefast_FBsimple>
|
5 |
+
<version>1.0.0</version>
|
6 |
+
</Magefast_FBsimple>
|
7 |
+
</modules>
|
8 |
+
<frontend>
|
9 |
+
<routers>
|
10 |
+
<fbsimple>
|
11 |
+
<use>standard</use>
|
12 |
+
<args>
|
13 |
+
<module>Magefast_FBsimple</module>
|
14 |
+
<frontName>fbsimple</frontName>
|
15 |
+
</args>
|
16 |
+
</fbsimple>
|
17 |
+
</routers>
|
18 |
+
<layout>
|
19 |
+
<updates>
|
20 |
+
<fbsimple>
|
21 |
+
<file>fbsimple.xml</file>
|
22 |
+
</fbsimple>
|
23 |
+
</updates>
|
24 |
+
</layout>
|
25 |
+
</frontend>
|
26 |
+
<global>
|
27 |
+
<blocks>
|
28 |
+
<fbsimple>
|
29 |
+
<class>Magefast_FBsimple_Block</class>
|
30 |
+
</fbsimple>
|
31 |
+
</blocks>
|
32 |
+
<helpers>
|
33 |
+
<fbsimple>
|
34 |
+
<class>Magefast_FBsimple_Helper</class>
|
35 |
+
</fbsimple>
|
36 |
+
</helpers>
|
37 |
+
</global>
|
38 |
+
<adminhtml>
|
39 |
+
<acl>
|
40 |
+
<resources>
|
41 |
+
<admin>
|
42 |
+
<children>
|
43 |
+
<system>
|
44 |
+
<children>
|
45 |
+
<config>
|
46 |
+
<children>
|
47 |
+
<fbsimple>
|
48 |
+
<title>Facebook simple Page Tab</title>
|
49 |
+
</fbsimple>
|
50 |
+
</children>
|
51 |
+
</config>
|
52 |
+
</children>
|
53 |
+
</system>
|
54 |
+
</children>
|
55 |
+
</admin>
|
56 |
+
</resources>
|
57 |
+
</acl>
|
58 |
+
<translate>
|
59 |
+
<modules>
|
60 |
+
<Magefast_FBsimple>
|
61 |
+
<files>
|
62 |
+
<default>Magefast_FBsimple.csv</default>
|
63 |
+
</files>
|
64 |
+
</Magefast_FBsimple>
|
65 |
+
</modules>
|
66 |
+
</translate>
|
67 |
+
</adminhtml>
|
68 |
+
</config>
|
app/code/community/Magefast/FBsimple/etc/system.xml
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<tabs>
|
4 |
+
<magefast translate="label" module="core">
|
5 |
+
<label>Magefast Extension</label>
|
6 |
+
<sort_order>100</sort_order>
|
7 |
+
</magefast>
|
8 |
+
</tabs>
|
9 |
+
<sections>
|
10 |
+
<fbsimple>
|
11 |
+
<label>Facebook simple Page Tab</label>
|
12 |
+
<tab>magefast</tab>
|
13 |
+
<frontend_type>text</frontend_type>
|
14 |
+
<sort_order>100</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 |
+
<general translate="label comment">
|
20 |
+
<label>Settings</label>
|
21 |
+
<frontend_type>text</frontend_type>
|
22 |
+
<sort_order>1</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 |
+
<fields>
|
27 |
+
<active translate="label,comment">
|
28 |
+
<label>Enabled</label>
|
29 |
+
<comment>determines if FB plugins are enabled on frontend</comment>
|
30 |
+
<frontend_type>select</frontend_type>
|
31 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
32 |
+
<sort_order>1</sort_order>
|
33 |
+
<show_in_default>1</show_in_default>
|
34 |
+
<show_in_website>1</show_in_website>
|
35 |
+
<show_in_store>1</show_in_store>
|
36 |
+
</active>
|
37 |
+
<title translate="label,comment">
|
38 |
+
<label>Title</label>
|
39 |
+
<frontend_type>text</frontend_type>
|
40 |
+
<sort_order>2</sort_order>
|
41 |
+
<show_in_default>1</show_in_default>
|
42 |
+
<show_in_website>1</show_in_website>
|
43 |
+
<show_in_store>1</show_in_store>
|
44 |
+
</title>
|
45 |
+
<cms_block translate="label,comment">
|
46 |
+
<label>CMS Block</label>
|
47 |
+
<comment>Insert the Identifier of CMS Statick Block that will show in Facebook Page Tab</comment>
|
48 |
+
<frontend_type>text</frontend_type>
|
49 |
+
<sort_order>3</sort_order>
|
50 |
+
<show_in_default>1</show_in_default>
|
51 |
+
<show_in_website>1</show_in_website>
|
52 |
+
<show_in_store>1</show_in_store>
|
53 |
+
</cms_block>
|
54 |
+
</fields>
|
55 |
+
</general>
|
56 |
+
</groups>
|
57 |
+
</fbsimple>
|
58 |
+
</sections>
|
59 |
+
</config>
|
app/design/frontend/default/default/layout/fbsimple.xml
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<fbsimple_index_index translate="label">
|
4 |
+
<reference name="root">
|
5 |
+
<action method="setTemplate"><template>page/empty.phtml</template></action>
|
6 |
+
</reference>
|
7 |
+
<reference name="content">
|
8 |
+
<block type="page/html" name="fbsimple_content" template="fbsimple/content.phtml" />
|
9 |
+
</reference>
|
10 |
+
</fbsimple_index_index>
|
11 |
+
</layout>
|
app/design/frontend/default/default/template/fbsimple/content.phtml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="fbsimple" >
|
2 |
+
<?php if (Mage::helper('fbsimple')->getTitle()) { ?><h1><?php echo Mage::helper('fbsimple')->getTitle(); ?></h1><?php } ?>
|
3 |
+
<?php
|
4 |
+
if (Mage::helper('fbsimple')->getCmsBlock()) {
|
5 |
+
echo $this->getLayout()->createBlock('cms/block')->setBlockId(Mage::helper('fbsimple')->getCmsBlock())->toHtml();
|
6 |
+
} ?>
|
7 |
+
</div>
|
8 |
+
<br />
|
9 |
+
Facebook Exstension for Magento by <a href="http://www.magefast.com/fb" target="_blank">Magefast.com</a>
|
app/etc/modules/Magefast_FBsimple.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Magefast_FBsimple>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</Magefast_FBsimple>
|
8 |
+
</modules>
|
9 |
+
</config>
|
app/locale/ru_RU/Magefast_FBsimple.csv
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"Magefast Extension","Magefast Модули"
|
2 |
+
"Facebook simple Page Tab","Facebook simple Page Tab"
|
3 |
+
"Enabled","Включено"
|
4 |
+
"determines if FB plugins are enabled on frontend","включить показ контента модуля"
|
5 |
+
"Title","Заголовок"
|
6 |
+
"CMS Block","CMS Блок"
|
7 |
+
"Insert the Identifier of CMS Statick Block that will show in Facebook Page Tab","Введите идентификатор статического блока CMS, который будет показывать на Вкладке в Facebook"
|
app/locale/uk_UA/Magefast_FBsimple.csv
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"Magefast Extension","Magefast Модулі"
|
2 |
+
"Facebook simple Page Tab","Facebook simple Page Tab"
|
3 |
+
"Enabled","Включено"
|
4 |
+
"determines if FB plugins are enabled on frontend","включить показ контента модуля"
|
5 |
+
"Title","Заголовок"
|
6 |
+
"CMS Block","CMS Блок"
|
7 |
+
"Insert the Identifier of CMS Statick Block that will show in Facebook Page Tab","Введіть ідентифікатор статичного блоку CMS, котрий буде відображатись на Вкладці Сторінки в Facebook"
|
package.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Magefast_FBsimple</name>
|
4 |
+
<version>1.0.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license>OSL v3.0</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>Create Facebook Page Tab - simply.</summary>
|
10 |
+
<description>Extension will add solutions for adding data from Magento Store to Facebook fan Page. Can add Information about Store or Add Products.</description>
|
11 |
+
<notes>First extension release.</notes>
|
12 |
+
<authors><author><name>Alex</name><user>auto-converted</user><email>b07400@yandex.com</email></author></authors>
|
13 |
+
<date>2012-08-13</date>
|
14 |
+
<time>12:32:22</time>
|
15 |
+
<contents><target name="mage"><dir name="app"><dir name="code"><dir name="community"><dir name="Magefast"><dir name="FBsimple"><dir name="Helper"><file name="Data.php" hash="b4dfbc43e816a7e3048c5fdc994e355a"/></dir><dir name="controllers"><file name="IndexController.php" hash="ad927aa8e320cc25faec4af0f3f6cb05"/></dir><dir name="etc"><file name="config.xml" hash="fe2b678e8815deed4dce8f2e485ce9c4"/><file name="system.xml" hash="a7faff0f954d37920383bad65fb3386b"/></dir></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="Magefast_FBsimple.xml" hash="f6a471614005060cb812faa2fc36ec80"/></dir></dir><dir name="locale"><dir name="ru_RU"><file name="Magefast_FBsimple.csv" hash="933d1a22c1021220b07671b5f1c7136c"/></dir><dir name="uk_UA"><file name="Magefast_FBsimple.csv" hash="4b5079d71bf3d150950fd769a0520bf0"/></dir></dir><dir name="design"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="fbsimple.xml" hash="07d04e17c57ecb948185e89db1b0a788"/></dir><dir name="template"><dir name="fbsimple"><file name="content.phtml" hash="9fe2a9a5de0aef3956cb1826b7b940a0"/></dir></dir></dir></dir></dir></dir></dir></target></contents>
|
16 |
+
<compatible/>
|
17 |
+
<dependencies/>
|
18 |
+
</package>
|