Version Notes
Initial Release
Download this release
Release Info
Developer | Matthijs IJsseldijk |
Extension | Bemaged_Contacts |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/community/Bemaged/Contacts/Helper/Data.php +36 -0
- app/code/community/Bemaged/Contacts/etc/adminhtml.xml +36 -0
- app/code/community/Bemaged/Contacts/etc/config.xml +60 -0
- app/code/community/Bemaged/Contacts/etc/system.xml +74 -0
- app/design/frontend/base/default/layout/bemaged/bemaged_contacts.xml +10 -0
- app/design/frontend/base/default/template/bemaged/contacts/map.phtml +30 -0
- app/etc/modules/Bemaged_Contacts.xml +9 -0
- app/locale/en_US/Bemaged_Contacts.csv +6 -0
- package.xml +20 -0
app/code/community/Bemaged/Contacts/Helper/Data.php
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Bemaged_SubcategoryGrid
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* http://opensource.org/licenses/OSL-3.0
|
9 |
+
*
|
10 |
+
* @package Bemaged_SubcategoryGrid
|
11 |
+
* @copyright Copyright (c) 2014 Matthijs IJsseldijk (http://www.bemaged.com)
|
12 |
+
* @author Matthijs IJsseldijk <hello@bemaged.com>
|
13 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
14 |
+
*/
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Class Bemaged_Contacts_Helper_Data
|
18 |
+
*/
|
19 |
+
class Bemaged_Contacts_Helper_Data extends Mage_Contacts_Helper_Data
|
20 |
+
{
|
21 |
+
/**
|
22 |
+
* Config paths for using throughout the code
|
23 |
+
*/
|
24 |
+
const XML_PATH_MAPURL = 'bemaged_contacts/settings/map';
|
25 |
+
|
26 |
+
/**
|
27 |
+
* Get Map URL
|
28 |
+
*
|
29 |
+
* @param string $store
|
30 |
+
* @return string
|
31 |
+
*/
|
32 |
+
public function getMapUrl($store = null)
|
33 |
+
{
|
34 |
+
return Mage::getStoreConfig(self::XML_PATH_MAPURL, $store);
|
35 |
+
}
|
36 |
+
}
|
app/code/community/Bemaged/Contacts/etc/adminhtml.xml
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Bemaged Contacts Extension
|
5 |
+
*
|
6 |
+
* @category Extension
|
7 |
+
* @copyright Copyright (c) 2014 Bemaged (http://www.bemaged.com)
|
8 |
+
* @author Matthijs IJsseldijk (hello@bemaged.com)
|
9 |
+
* @license
|
10 |
+
* @terms of use
|
11 |
+
* @version Release: 1.0.0
|
12 |
+
* @since Class available since Release 1.0.0
|
13 |
+
*/
|
14 |
+
-->
|
15 |
+
<config>
|
16 |
+
<acl>
|
17 |
+
<resources>
|
18 |
+
<admin>
|
19 |
+
<children>
|
20 |
+
<system>
|
21 |
+
<children>
|
22 |
+
<config>
|
23 |
+
<children>
|
24 |
+
<bemaged_contacts translate="title" module="bemaged_contacts">
|
25 |
+
<title>Bemaged Contacts</title>
|
26 |
+
<sort_order>700</sort_order>
|
27 |
+
</bemaged_contacts>
|
28 |
+
</children>
|
29 |
+
</config>
|
30 |
+
</children>
|
31 |
+
</system>
|
32 |
+
</children>
|
33 |
+
</admin>
|
34 |
+
</resources>
|
35 |
+
</acl>
|
36 |
+
</config>
|
app/code/community/Bemaged/Contacts/etc/config.xml
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Bemaged_Contacts
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* http://opensource.org/licenses/OSL-3.0
|
10 |
+
*
|
11 |
+
* @package Bemaged_Contacts
|
12 |
+
* @copyright Copyright (c) 2014 BeMaged eCommerce (http://www.bemaged.com)
|
13 |
+
* @author Matthijs IJsseldijk <hello@bemaged.com>
|
14 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
15 |
+
*/
|
16 |
+
-->
|
17 |
+
<config>
|
18 |
+
<modules>
|
19 |
+
<Bemaged_Contacts>
|
20 |
+
<version>1.0.0</version>
|
21 |
+
</Bemaged_Contacts>
|
22 |
+
</modules>
|
23 |
+
<global>
|
24 |
+
<helpers>
|
25 |
+
<bemaged_contacts>
|
26 |
+
<class>Bemaged_Contacts_Helper</class>
|
27 |
+
</bemaged_contacts>
|
28 |
+
</helpers>
|
29 |
+
<resources>
|
30 |
+
<bemaged_contacts_setup>
|
31 |
+
<setup>
|
32 |
+
<module>Bemaged_Contacts</module>
|
33 |
+
</setup>
|
34 |
+
<connection>
|
35 |
+
<use>core_setup</use>
|
36 |
+
</connection>
|
37 |
+
</bemaged_contacts_setup>
|
38 |
+
</resources>
|
39 |
+
</global>
|
40 |
+
<frontend>
|
41 |
+
<layout>
|
42 |
+
<updates>
|
43 |
+
<bemaged_contacts>
|
44 |
+
<file>bemaged/bemaged_contacts.xml</file>
|
45 |
+
</bemaged_contacts>
|
46 |
+
</updates>
|
47 |
+
</layout>
|
48 |
+
</frontend>
|
49 |
+
<adminhtml>
|
50 |
+
<translate>
|
51 |
+
<modules>
|
52 |
+
<Bemaged_Contacts>
|
53 |
+
<files>
|
54 |
+
<default>Bemaged_Contacts.csv</default>
|
55 |
+
</files>
|
56 |
+
</Bemaged_Contacts>
|
57 |
+
</modules>
|
58 |
+
</translate>
|
59 |
+
</adminhtml>
|
60 |
+
</config>
|
app/code/community/Bemaged/Contacts/etc/system.xml
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Bemaged_Contacts
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* http://opensource.org/licenses/OSL-3.0
|
10 |
+
*
|
11 |
+
* @package Bemaged_Contacts
|
12 |
+
* @copyright Copyright (c) 2014 Matthijs IJsseldijk (http://www.bemaged.com)
|
13 |
+
* @author Matthijs IJsseldijk <hello@bemaged.com>
|
14 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
15 |
+
*/
|
16 |
+
-->
|
17 |
+
<config>
|
18 |
+
<tabs>
|
19 |
+
<bemagedtab translate="label">
|
20 |
+
<label>Bemaged Extensions</label>
|
21 |
+
<sort_order>120</sort_order>
|
22 |
+
</bemagedtab>
|
23 |
+
</tabs>
|
24 |
+
<sections>
|
25 |
+
<bemaged_contacts module="bemaged_contacts" translate="label">
|
26 |
+
<label>Bemaged Contacts 1.0.0</label>
|
27 |
+
<tab>bemagedtab</tab>
|
28 |
+
<frontend_type>text</frontend_type>
|
29 |
+
<sort_order>1000</sort_order>
|
30 |
+
<show_in_default>1</show_in_default>
|
31 |
+
<show_in_website>1</show_in_website>
|
32 |
+
<show_in_store>1</show_in_store>
|
33 |
+
<groups>
|
34 |
+
<general module="bemaged_contacts" translate="label">
|
35 |
+
<label>General</label>
|
36 |
+
<sort_order>10</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 |
+
<enable module="bemaged_contacts" translate="label comment">
|
42 |
+
<label>Enable Bemaged Contacts</label>
|
43 |
+
<frontend_type>select</frontend_type>
|
44 |
+
<source_model>adminhtml/system_config_source_enabledisable</source_model>
|
45 |
+
<comment>Enable/disable Bemaged Contacts extension</comment>
|
46 |
+
<sort_order>10</sort_order>
|
47 |
+
<show_in_default>1</show_in_default>
|
48 |
+
<show_in_website>1</show_in_website>
|
49 |
+
<show_in_store>1</show_in_store>
|
50 |
+
</enable>
|
51 |
+
</fields>
|
52 |
+
</general>
|
53 |
+
<settings translate="label">
|
54 |
+
<label>Settings</label>
|
55 |
+
<sort_order>20</sort_order>
|
56 |
+
<show_in_default>1</show_in_default>
|
57 |
+
<show_in_website>1</show_in_website>
|
58 |
+
<show_in_store>1</show_in_store>
|
59 |
+
<fields>
|
60 |
+
<map translate="label comment">
|
61 |
+
<label>Map Details</label>
|
62 |
+
<frontend_type>text</frontend_type>
|
63 |
+
<comment>Enter the URL of the map to embed in the iframe</comment>
|
64 |
+
<sort_order>10</sort_order>
|
65 |
+
<show_in_default>1</show_in_default>
|
66 |
+
<show_in_website>1</show_in_website>
|
67 |
+
<show_in_store>1</show_in_store>
|
68 |
+
</map>
|
69 |
+
</fields>
|
70 |
+
</settings>
|
71 |
+
</groups>
|
72 |
+
</bemaged_contacts>
|
73 |
+
</sections>
|
74 |
+
</config>
|
app/design/frontend/base/default/layout/bemaged/bemaged_contacts.xml
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout>
|
3 |
+
<contacts_index_index>
|
4 |
+
<reference name="content">
|
5 |
+
<block type="core/template" name="contactMap" after="contactForm">
|
6 |
+
<action method="setTemplate" ifconfig="bemaged_contacts/general/enable"><template>bemaged/contacts/map.phtml</template></action>
|
7 |
+
</block>
|
8 |
+
</reference>
|
9 |
+
</contacts_index_index>
|
10 |
+
</layout>
|
app/design/frontend/base/default/template/bemaged/contacts/map.phtml
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magento.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magento.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package bemaged_contacts
|
23 |
+
* @copyright Copyright (c) 2014 BeMaged (http://www.bemaged.com)
|
24 |
+
* @author Matthijs IJsseldijk (hello@bemaged.com)
|
25 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
26 |
+
*/
|
27 |
+
?>
|
28 |
+
<div class="contact-map" style="margin:30px 0 20px;">
|
29 |
+
<iframe style="border: 0;" src="<?php echo Mage::helper('bemaged_contacts')->getMapUrl($store = null) ?>" frameborder="0" width="100%" height="270"></iframe>
|
30 |
+
</div>
|
app/etc/modules/Bemaged_Contacts.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Bemaged_Contacts>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</Bemaged_Contacts>
|
8 |
+
</modules>
|
9 |
+
</config>
|
app/locale/en_US/Bemaged_Contacts.csv
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"Enable Bemaged Contacts","Enable Bemaged Contacts"
|
2 |
+
"Enable/disable Bemaged Contacts extension","Enable/disable Bemaged Contacts extension"
|
3 |
+
"Enter the URL of the map to embed in the iframe","Enter the URL of the map to embed in the iframe"
|
4 |
+
"General","General"
|
5 |
+
"Map Details","Map Details"
|
6 |
+
"Settings","Settings"
|
package.xml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Bemaged_Contacts</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>This extension will allow you to add a Google Map to the Magento Contact Us page</summary>
|
10 |
+
<description>Do you want to provide your customers with accurate and detailed information about your stores location? Add a Google Map to the Magento Contact Us page right from the Admin Panel.
|
11 |
+

|
12 |
+
This extension allows you to display a map on the Magento Contact Us page. Simply install the module and enable it. In your admin panel there will be a field to enter the URL from Google Maps iframe to your location. After saving it this map will be displayed below the Magento Contact Form.</description>
|
13 |
+
<notes>Initial Release</notes>
|
14 |
+
<authors><author><name>Matthijs IJsseldijk</name><user>BeMaged</user><email>hello@bemaged.com</email></author></authors>
|
15 |
+
<date>2014-12-14</date>
|
16 |
+
<time>12:10:01</time>
|
17 |
+
<contents><target name="magecommunity"><dir name="Bemaged"><dir name="Contacts"><dir name="Helper"><file name="Data.php" hash="7ba487618384cfac1bb14dabdf697957"/></dir><dir name="etc"><file name="adminhtml.xml" hash="8be34b7f589365eaaed3eb4c4c53ee61"/><file name="config.xml" hash="b4c7ec0623257bc8d01013fb5546fd88"/><file name="system.xml" hash="b654d29b297f5519ac1cf733a5e6f935"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Bemaged_Contacts.xml" hash="5dc8a92f39e957d4bc4bda1f06fbb0d0"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="bemaged"><file name="bemaged_contacts.xml" hash="0c5ff8cd4ae1b02808cc75a4789c481f"/></dir></dir><dir name="template"><dir name="bemaged"><dir name="contacts"><file name="map.phtml" hash="96b7b849a52b3b30c1b6e0c00478f9e1"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Bemaged_Contacts.csv" hash="3fd274d4583814632264d1d1eb803ee7"/></dir></target></contents>
|
18 |
+
<compatible/>
|
19 |
+
<dependencies><required><php><min>5.2.0</min><max>5.5.0</max></php></required></dependencies>
|
20 |
+
</package>
|