MarKor_QuickInfo - Version 1.0.0

Version Notes

none

Download this release

Release Info

Developer MarKor NET
Extension MarKor_QuickInfo
Version 1.0.0
Comparing to
See all releases


Version 1.0.0

app/code/community/MarKor/QuickInfo/Helper/Data.php ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MarKor NET
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * @category MarKorNET
13
+ * @package MarKor_QuickInfo
14
+ * @author Marcin Korzystka <support@markornet.com>
15
+ * @copyright Copyright (c) MarKor NET (http://www.markornet.com)
16
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
17
+ */
18
+
19
+ class MarKor_QuickInfo_Helper_Data extends Mage_Core_Helper_Abstract
20
+ {
21
+
22
+ }
app/code/community/MarKor/QuickInfo/etc/adminhtml.xml ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * MarKor NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ *
13
+ * @category MarKorNET
14
+ * @package MarKor_QuickInfo
15
+ * @author Marcin Korzystka <support@markornet.com>
16
+ * @copyright Copyright (c) MarKor NET (http://www.markornet.com)
17
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
+ */
19
+ -->
20
+ <config>
21
+ <acl>
22
+ <resources>
23
+ <all>
24
+ <title>Allow Everything</title>
25
+ </all>
26
+ <admin>
27
+ <children>
28
+ <quickinfo translate="title" module="quickinfo">
29
+ <title>MARKORNET</title>
30
+ <sort_order>89</sort_order>
31
+ <children>
32
+ <information translate="title" module="quickinfo">
33
+ <title>Information</title>
34
+ <sort_order>10000</sort_order>
35
+ </information>
36
+ </children>
37
+ </quickinfo>
38
+ <system>
39
+ <children>
40
+ <config>
41
+ <children>
42
+ <quickinfo>
43
+ <title>MARKORNET Information</title>
44
+ </quickinfo>
45
+ </children>
46
+ </config>
47
+ </children>
48
+ </system>
49
+ </children>
50
+ </admin>
51
+ </resources>
52
+ </acl>
53
+ </config>
app/code/community/MarKor/QuickInfo/etc/config.xml ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ /**
4
+ * MarKor NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ *
13
+ * @category MarKorNET
14
+ * @package MarKor_QuickInfo
15
+ * @author Marcin Korzystka <support@markornet.com>
16
+ * @copyright Copyright (c) MarKor NET (http://www.markornet.com)
17
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
+ */
19
+ -->
20
+ <!-- The root node for Magento module configuration -->
21
+ <config>
22
+ <!--
23
+ The module's node contains basic
24
+ information about each Magento module
25
+ -->
26
+ <modules>
27
+ <!--
28
+ This must exactly match the namespace and module's folder
29
+ names, with directory separators replaced by underscores
30
+ -->
31
+ <MarKor_QuickInfo>
32
+ <version>1.0.0</version>
33
+ </MarKor_QuickInfo>
34
+ </modules>
35
+ <global>
36
+ <helpers>
37
+ <quickinfo>
38
+ <class>MarKor_QuickInfo_Helper</class>
39
+ </quickinfo>
40
+ </helpers>
41
+ </global>
42
+ <frontend>
43
+ <!-- we are making changes to the layout -->
44
+ <layout>
45
+ <!-- we are adding a new update file -->
46
+ <updates>
47
+ <!--
48
+ this child node name must be
49
+ unique throughout Magento
50
+ -->
51
+ <markor_quickinfo
52
+ module="MarKor_QuickInfo">
53
+ <!-- the name of the layout file we are adding -->
54
+ <file>markor/quickinfo.xml</file>
55
+ </markor_quickinfo>
56
+ </updates>
57
+ </layout>
58
+ </frontend>
59
+ <default>
60
+ <quickinfo>
61
+ <SAMPLE>
62
+ <enableimage>1</enableimage>
63
+ </SAMPLE>
64
+ </quickinfo>
65
+ </default>
66
+ </config>
app/code/community/MarKor/QuickInfo/etc/system.xml ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ /**
4
+ * MarKor NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ *
13
+ * @category MarKorNET
14
+ * @package MarKor_QuickInfo
15
+ * @author Marcin Korzystka <support@markornet.com>
16
+ * @copyright Copyright (c) MarKor NET (http://www.markornet.com)
17
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
+ */
19
+ -->
20
+ <config>
21
+ <tabs>
22
+ <markor translate="label" module="quickinfo">
23
+ <label>MARKOR NET</label>
24
+ <sort_order>300</sort_order>
25
+ </markor>
26
+ </tabs>
27
+ <sections>
28
+ <quickinfo translate="label" module="quickinfo">
29
+ <label>Quick Info</label>
30
+ <tab>markor</tab>
31
+ <frontend_type>text</frontend_type>
32
+ <sort_order>310</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
+ <groups>
37
+ <SAMPLE translate="label">
38
+ <label>Quick Info Options</label>
39
+ <frontend_type>text</frontend_type>
40
+ <sort_order>100</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
+ <fields>
45
+ <enableimage translate="label">
46
+ <label>Image display</label>
47
+ <comment>If enabled, block will show in footer</comment>
48
+ <frontend_type>select</frontend_type>
49
+ <source_model>adminhtml/system_config_source_yesno</source_model>
50
+ <sort_order>2</sort_order>
51
+ <show_in_default>1</show_in_default>
52
+ <show_in_website>1</show_in_website>
53
+ <show_in_store>1</show_in_store>
54
+ </enableimage>
55
+ <logo translate="label comment">
56
+ <label>Image (url)</label>
57
+ <comment>
58
+ <![CDATA[Upload image
59
+ <span class="notice">with extension!</span>]]>
60
+ </comment>
61
+ <frontend_type>Imagefile</frontend_type>
62
+ <backend_model>adminhtml/system_config_backend_image</backend_model>
63
+ <upload_dir config="system/filesystem/media" scope_info="1">markornet</upload_dir>
64
+ <base_url type="media" scope_info="1">markornet</base_url>
65
+ <sort_order>5</sort_order>
66
+ <show_in_default>1</show_in_default>
67
+ <show_in_website>1</show_in_website>
68
+ <show_in_store>1</show_in_store>
69
+ </logo>
70
+ <footermode translate="label">
71
+ <label>Footer display</label>
72
+ <comment>If enabled, block will show in footer</comment>
73
+ <frontend_type>select</frontend_type>
74
+ <source_model>adminhtml/system_config_source_yesno</source_model>
75
+ <sort_order>10</sort_order>
76
+ <show_in_default>1</show_in_default>
77
+ <show_in_website>1</show_in_website>
78
+ <show_in_store>1</show_in_store>
79
+ </footermode>
80
+ <rightmode translate="label">
81
+ <label>Right display</label>
82
+ <comment>If enabled, block will show in right column</comment>
83
+ <frontend_type>select</frontend_type>
84
+ <source_model>adminhtml/system_config_source_yesno</source_model>
85
+ <sort_order>11</sort_order>
86
+ <show_in_default>1</show_in_default>
87
+ <show_in_website>1</show_in_website>
88
+ <show_in_store>1</show_in_store>
89
+ </rightmode>
90
+ </fields>
91
+ </SAMPLE>
92
+ </groups>
93
+ </quickinfo>
94
+ </sections>
95
+ </config>
app/design/frontend/base/default/layout/markor/quickinfo.xml ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * MarKor NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ *
13
+ * @category MarKorNET
14
+ * @package MarKor_QuickInfo
15
+ * @author Marcin Korzystka <support@markornet.com>
16
+ * @copyright Copyright (c) MarKor NET (http://www.markornet.com)
17
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
+ */
19
+
20
+ -->
21
+ <layout version="1.2.0">
22
+ <!--
23
+ Default layout
24
+ -->
25
+ <default>
26
+ <reference name="footer">
27
+ <block type="core/template" name="quickInfo">
28
+ <action method="setTemplate" ifconfig="quickinfo/SAMPLE/footermode"><template>markor/quickinfo/info.phtml</template></action>
29
+ </block>
30
+ </reference>
31
+ <reference name="right">
32
+ <block type="core/template" name="quickInfo">
33
+ <action method="setTemplate" ifconfig="quickinfo/SAMPLE/rightmode"><template>markor/quickinfo/column.phtml</template></action>
34
+ </block>
35
+ </reference>
36
+ </default>
37
+ </layout>
app/design/frontend/base/default/template/markor/quickinfo/column.phtml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MarKor NET
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * @category MarKorNET
13
+ * @package MarKor_QuickInfo
14
+ * @author Marcin Korzystka <support@markornet.com>
15
+ * @copyright Copyright (c) MarKor NET (http://www.markornet.com)
16
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
17
+ */
18
+
19
+ /**
20
+ * @see Mage_Authorizenet_Block_Directpost_Form
21
+ */
22
+ ?>
23
+ <?php
24
+ $storePhone = Mage::getStoreConfig('general/store_information/phone');
25
+ $storeEmail = Mage::getStoreConfig('trans_email/ident_general/email');
26
+ ?>
27
+ <div class="block block-subscribe">
28
+ <div class="block-title">
29
+ <strong><span><?php echo $this->__('Contact Us'); ?></span></strong>
30
+ </div>
31
+ <div class="block-content">
32
+ <p><strong><?php echo Mage::getStoreConfig('general/store_information/name') ?></strong></p>
33
+ <p><?php echo $storePhone; ?></p>
34
+ <p><?php echo $storeEmail; ?></p>
35
+ </div>
36
+ <?php if(Mage::getStoreConfig('quickinfo/SAMPLE/enableimage')): ?>
37
+ <img src="<?php echo Mage::getBaseUrl('media')."markornet/".Mage::getStoreConfig('quickinfo/SAMPLE/logo') ?>" style="float: right;"/>
38
+ <div style="clear: right"></div>
39
+ <?php endif; ?>
40
+ </div>
app/design/frontend/base/default/template/markor/quickinfo/info.phtml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MarKor NET
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ *
12
+ * @category MarKorNET
13
+ * @package MarKor_QuickInfo
14
+ * @author Marcin Korzystka <support@markornet.com>
15
+ * @copyright Copyright (c) MarKor NET (http://www.markornet.com)
16
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
17
+ */
18
+ ?>
19
+ <?php
20
+ $storePhone = Mage::getStoreConfig('general/store_information/phone');
21
+ $storeEmail = Mage::getStoreConfig('trans_email/ident_general/email');
22
+ ?>
23
+ <div class="quickinfo">
24
+ <div class="block-title"><strong><?php echo $this->__('Contact Us'); ?></strong></div>
25
+ <p><?php echo $storePhone; ?></p>
26
+ <p><?php echo $storeEmail; ?></p>
27
+ </div>
app/etc/modules/MarKor_QuickInfo.xml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * MarKor NET
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ *
13
+ * @category MarKorNET
14
+ * @package MarKor_QuickInfo
15
+ * @author Marcin Korzystka <support@markornet.com>
16
+ * @copyright Copyright (c) MarKor NET (http://www.markornet.com)
17
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
+ */
19
+ -->
20
+ <config>
21
+ <modules>
22
+ <MarKor_QuickInfo>
23
+ <active>true</active>
24
+ <codePool>community</codePool>
25
+ </MarKor_QuickInfo>
26
+ </modules>
27
+ </config>
package.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>MarKor_QuickInfo</name>
4
+ <version>1.0.0</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Displays short info about shop's contact.</summary>
10
+ <description>This module allow you display short info about shop's contact on footer or on right column.</description>
11
+ <notes>none</notes>
12
+ <authors><author><name>Marcin Korzystka</name><user>markornet</user><email>biuro@markornet.com</email></author></authors>
13
+ <date>2015-02-17</date>
14
+ <time>18:16:43</time>
15
+ <contents><target name="magecommunity"><dir name="MarKor"><dir name="QuickInfo"><dir name="Helper"><file name="Data.php" hash="ba8976c61698cccafceea050267dc269"/></dir><dir name="etc"><file name="adminhtml.xml" hash="d0b9ee61a9695e4c7809cdcbb2fb889e"/><file name="config.xml" hash="8e79f9c10648ad9409bf1a7d5f152535"/><file name="system.xml" hash="437be4d8f2e08cc1300ed1cb96ad9620"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="markor"><file name="quickinfo.xml" hash="a0bdbec624827b18abd31c5ce44fc230"/></dir></dir><dir name="template"><dir name="markor"><dir name="quickinfo"><file name="column.phtml" hash="9cb90c86943e78fae6d3405df776e79c"/><file name="info.phtml" hash="863df20836bef5f0b0881a34dfdda668"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MarKor_QuickInfo.xml" hash="7c8c4b60ce9de7c24158c53a436b8019"/></dir></target></contents>
16
+ <compatible/>
17
+ <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
+ </package>