Version Notes
Magemall AjaxLogin will replace the login link to an ajax popup box.It's easy to use without any code change
Download this release
Release Info
Developer | LuoChunhui |
Extension | Giko_AjaxLogin |
Version | 1.0.0 |
Comparing to | |
See all releases |
Code changes from version 0.5.2 to 1.0.0
- app/code/community/Giko/Ajaxlogin/Block/Form.php +0 -44
- app/code/community/Giko/Ajaxlogin/Block/Js.php +0 -77
- app/code/community/Giko/Ajaxlogin/Helper/Data.php +0 -21
- app/code/community/Giko/Ajaxlogin/etc/config.xml +0 -84
- app/code/community/Giko/Ajaxlogin/etc/system.xml +0 -69
- app/code/community/Magemall/Ajaxlogin/Block/Form.php +83 -0
- app/code/community/Magemall/Ajaxlogin/Block/Js.php +81 -0
- app/code/community/Magemall/Ajaxlogin/Helper/Data.php +39 -0
- app/code/community/{Giko → Magemall}/Ajaxlogin/controllers/LoginController.php +41 -1
- app/code/community/Magemall/Ajaxlogin/etc/config.xml +118 -0
- app/code/community/Magemall/Ajaxlogin/etc/system.xml +80 -0
- app/design/frontend/base/default/layout/ajaxlogin.xml +0 -58
- app/design/frontend/default/default/layout/ajaxlogin.xml +64 -0
- app/design/frontend/{base → default}/default/template/ajaxlogin/form.phtml +1 -1
- app/design/frontend/default/default/template/ajaxlogin/js.phtml +0 -0
- app/etc/modules/{Giko_Ajaxlogin.xml → Magemall_Ajaxlogin.xml} +2 -5
- js/{giko → magemall}/ajaxlogin.js +0 -2
- js/{giko → magemall}/tinybox.js +0 -0
- package.xml +10 -10
- skin/frontend/{base/default/css/giko → default/default/css}/ajaxlogin.css +2 -2
- skin/frontend/{base/default/images/giko → default/default/images}/ajaxlogin/close.png +0 -0
- skin/frontend/{base/default/images/giko → default/default/images}/ajaxlogin/preload.gif +0 -0
app/code/community/Giko/Ajaxlogin/Block/Form.php
DELETED
@@ -1,44 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Giko_Ajaxlogin_Block_Form extends Mage_Core_Block_Template {
|
4 |
-
public function getMessages()
|
5 |
-
{
|
6 |
-
return Mage::getSingleton('customer/session')->getMessages(true);
|
7 |
-
}
|
8 |
-
|
9 |
-
public function getPostAction()
|
10 |
-
{
|
11 |
-
return Mage::getUrl('ajaxlogin/login/form', array('_secure'=>true));
|
12 |
-
}
|
13 |
-
|
14 |
-
public function getMethod()
|
15 |
-
{
|
16 |
-
return $this->getQuote()->getMethod();
|
17 |
-
}
|
18 |
-
|
19 |
-
public function getMethodData()
|
20 |
-
{
|
21 |
-
return $this->getCheckout()->getMethodData();
|
22 |
-
}
|
23 |
-
|
24 |
-
public function getSuccessUrl()
|
25 |
-
{
|
26 |
-
return $this->getUrl('*/*');
|
27 |
-
}
|
28 |
-
|
29 |
-
public function getErrorUrl()
|
30 |
-
{
|
31 |
-
return $this->getUrl('*/*');
|
32 |
-
}
|
33 |
-
|
34 |
-
/**
|
35 |
-
* Retrieve username for form field
|
36 |
-
*
|
37 |
-
* @return string
|
38 |
-
*/
|
39 |
-
public function getUsername()
|
40 |
-
{
|
41 |
-
return Mage::getSingleton('customer/session')->getUsername(true);
|
42 |
-
}
|
43 |
-
|
44 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Giko/Ajaxlogin/Block/Js.php
DELETED
@@ -1,77 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Faett_Piwik_Block_Tag
|
5 |
-
*
|
6 |
-
* NOTICE OF LICENSE
|
7 |
-
*
|
8 |
-
* Faett_Piwik is free software: you can redistribute it and/or modify
|
9 |
-
* it under the terms of the GNU General Public License as published by
|
10 |
-
* the Free Software Foundation, either version 3 of the License, or
|
11 |
-
* (at your option) any later version.
|
12 |
-
*
|
13 |
-
* Faett_Piwik is distributed in the hope that it will be useful,
|
14 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
16 |
-
* GNU General Public License for more details.
|
17 |
-
*
|
18 |
-
* You should have received a copy of the GNU General Public License
|
19 |
-
* along with Faett_Piwik. If not, see <http://www.gnu.org/licenses/>.
|
20 |
-
*
|
21 |
-
* DISCLAIMER
|
22 |
-
*
|
23 |
-
* Do not edit or add to this file if you wish to upgrade Faett_Piwik to newer
|
24 |
-
* versions in the future. If you wish to customize Faett_Piwik for your
|
25 |
-
* needs please refer to http://www.faett.net for more information.
|
26 |
-
*
|
27 |
-
* @category Faett
|
28 |
-
* @package Faett_Piwik
|
29 |
-
* @copyright Copyright (c) 2009 <tw@faett.net> Tim Wagner
|
30 |
-
* @license <http://www.gnu.org/licenses/>
|
31 |
-
* GNU General Public License (GPL 3)
|
32 |
-
*/
|
33 |
-
|
34 |
-
/**
|
35 |
-
* Piwik Block page.
|
36 |
-
*
|
37 |
-
* @category Faett
|
38 |
-
* @package Faett_Piwik
|
39 |
-
* @copyright Copyright (c) 2009 <tw@faett.net> Tim Wagner
|
40 |
-
* @license <http://www.gnu.org/licenses/>
|
41 |
-
* GNU General Public License (GPL 3)
|
42 |
-
* @author Tim Wagner <tw@faett.net>
|
43 |
-
*/
|
44 |
-
class Giko_Ajaxlogin_Block_Js extends Mage_Core_Block_Text
|
45 |
-
{
|
46 |
-
/**
|
47 |
-
* Prepare and return block's html output
|
48 |
-
*
|
49 |
-
* @return string
|
50 |
-
*/
|
51 |
-
protected function _toHtml()
|
52 |
-
{
|
53 |
-
if (!Mage::getStoreConfigFlag('ajaxlogin/settings/enable')) {
|
54 |
-
return '';
|
55 |
-
}
|
56 |
-
if (Mage::getSingleton('customer/session')->isLoggedIn()) {
|
57 |
-
return '';
|
58 |
-
}
|
59 |
-
|
60 |
-
$cssMain = $this->getSkinUrl('css/ajaxlogin.css');
|
61 |
-
|
62 |
-
$html = <<<HTML
|
63 |
-
<!-- AjaxLogin -->
|
64 |
-
<script type="text/javascript">
|
65 |
-
$$("a[href*=customer/account/login]").each(function(item) {
|
66 |
-
item.href='javascript:void(0)';
|
67 |
-
Event.observe(item, 'click', showloginbox);
|
68 |
-
});
|
69 |
-
</script>
|
70 |
-
<!-- End Giko AjaxLogin Code -->
|
71 |
-
<!-- Get free from http://magento.luochunhui.com/ajaxlogin.html -->
|
72 |
-
HTML;
|
73 |
-
$this->addText($html);
|
74 |
-
|
75 |
-
return parent::_toHtml();
|
76 |
-
}
|
77 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Giko/Ajaxlogin/Helper/Data.php
DELETED
@@ -1,21 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* ---------------------------------------------------------------------------
|
4 |
-
* luochunhui.com
|
5 |
-
*
|
6 |
-
* COPYRIGHT (c) 2011 BY LuoChunhui. ALL RIGHTS
|
7 |
-
* RESERVED. The source code, design, and structure of THIS PROGRAM are trade secrets.
|
8 |
-
* You will not disassemble, decompile, or reverse engineer it, in whole or in part,
|
9 |
-
except to the extent expressly permitted by law.
|
10 |
-
You will not use THIS PROGRAM for illegal purposes. You will comply with all export laws. Giko_Tenpay is licensed, not sold.
|
11 |
-
*
|
12 |
-
* @category Giko
|
13 |
-
* @package Giko_QuickCheckout
|
14 |
-
* @author luochunhui
|
15 |
-
* @copyright Copyright (c) 2011 LuoChunhui (http://www.luochunhui.com)
|
16 |
-
* ---------------------------------------------------------------------------
|
17 |
-
*
|
18 |
-
*/
|
19 |
-
class Giko_Ajaxlogin_Helper_Data extends Mage_Core_Helper_Abstract {
|
20 |
-
|
21 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Giko/Ajaxlogin/etc/config.xml
DELETED
@@ -1,84 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<!--
|
3 |
-
/** * luochunhui.com * * COPYRIGHT (c) 2011 BY LuoChunhui. ALL RIGHTS
|
4 |
-
* RESERVED. The source code, design, and structure of THIS PROGRAM are
|
5 |
-
trade secrets. * You will not disassemble, decompile, or reverse
|
6 |
-
engineer it, in whole or in part, except to the extent expressly
|
7 |
-
permitted by law. You will not use THIS PROGRAM for illegal purposes.
|
8 |
-
You will comply with all export laws. Giko_Tenpay is licensed, not
|
9 |
-
sold. * * @category Profit * @package Giko_Qeckout * @author
|
10 |
-
luochunhui * @copyright Copyright (c) 2011 LuoChunhui
|
11 |
-
(http://www.luochunhui.com) * */
|
12 |
-
-->
|
13 |
-
<config>
|
14 |
-
<modules>
|
15 |
-
<Giko_Ajaxlogin>
|
16 |
-
<version>0.5.2</version>
|
17 |
-
</Giko_Ajaxlogin>
|
18 |
-
</modules>
|
19 |
-
|
20 |
-
<global>
|
21 |
-
<models>
|
22 |
-
<ajaxlogin>
|
23 |
-
<class>Giko_Ajaxlogin_Model</class>
|
24 |
-
</ajaxlogin>
|
25 |
-
</models>
|
26 |
-
|
27 |
-
<helpers>
|
28 |
-
<ajaxlogin>
|
29 |
-
<class>Giko_Ajaxlogin_Helper</class>
|
30 |
-
</ajaxlogin>
|
31 |
-
</helpers>
|
32 |
-
|
33 |
-
<blocks>
|
34 |
-
<ajaxlogin>
|
35 |
-
<class>Giko_Ajaxlogin_Block</class>
|
36 |
-
</ajaxlogin>
|
37 |
-
</blocks>
|
38 |
-
</global>
|
39 |
-
|
40 |
-
<adminhtml>
|
41 |
-
<acl>
|
42 |
-
<resources>
|
43 |
-
<admin>
|
44 |
-
<children>
|
45 |
-
<system>
|
46 |
-
<children>
|
47 |
-
<config>
|
48 |
-
<children>
|
49 |
-
<ajaxlogin>
|
50 |
-
<title>Ajaxlogin</title>
|
51 |
-
</ajaxlogin>
|
52 |
-
</children>
|
53 |
-
</config>
|
54 |
-
</children>
|
55 |
-
</system>
|
56 |
-
</children>
|
57 |
-
</admin>
|
58 |
-
</resources>
|
59 |
-
</acl>
|
60 |
-
</adminhtml>
|
61 |
-
|
62 |
-
<frontend>
|
63 |
-
<secure_url>
|
64 |
-
<ajaxlogin_index>/ajaxlogin/login</ajaxlogin_index>
|
65 |
-
</secure_url>
|
66 |
-
<routers>
|
67 |
-
<ajaxlogin>
|
68 |
-
<use>standard</use>
|
69 |
-
<args>
|
70 |
-
<module>Giko_Ajaxlogin</module>
|
71 |
-
<frontName>ajaxlogin</frontName>
|
72 |
-
</args>
|
73 |
-
</ajaxlogin>
|
74 |
-
</routers>
|
75 |
-
<layout>
|
76 |
-
<updates>
|
77 |
-
<ajaxlogin>
|
78 |
-
<file>ajaxlogin.xml</file>
|
79 |
-
</ajaxlogin>
|
80 |
-
</updates>
|
81 |
-
</layout>
|
82 |
-
</frontend>
|
83 |
-
|
84 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Giko/Ajaxlogin/etc/system.xml
DELETED
@@ -1,69 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<!--
|
3 |
-
/**
|
4 |
-
* Magento
|
5 |
-
*
|
6 |
-
* NOTICE OF LICENSE
|
7 |
-
*
|
8 |
-
* This source file is subject to the Academic Free License (AFL 3.0)
|
9 |
-
* that is bundled with this package in the file LICENSE_AFL.txt.
|
10 |
-
* It is also available through the world-wide-web at this URL:
|
11 |
-
* http://opensource.org/licenses/afl-3.0.php
|
12 |
-
* If you did not receive a copy of the license and are unable to
|
13 |
-
* obtain it through the world-wide-web, please send an email
|
14 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
15 |
-
*
|
16 |
-
* DISCLAIMER
|
17 |
-
*
|
18 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
19 |
-
* versions in the future. If you wish to customize Magento for your
|
20 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
21 |
-
*
|
22 |
-
* @category
|
23 |
-
* @package _home
|
24 |
-
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
25 |
-
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
26 |
-
*/
|
27 |
-
-->
|
28 |
-
<config>
|
29 |
-
<tabs>
|
30 |
-
<giko translate="label" module="ajaxlogin">
|
31 |
-
<label>Giko</label>
|
32 |
-
<sort_order>300</sort_order>
|
33 |
-
</giko>
|
34 |
-
</tabs>
|
35 |
-
<sections>
|
36 |
-
<ajaxlogin translate="label" module="ajaxlogin">
|
37 |
-
<label>Giko AjaxLogin</label>
|
38 |
-
<tab>giko</tab>
|
39 |
-
<sort_order>100</sort_order>
|
40 |
-
<show_in_default>1</show_in_default>
|
41 |
-
<show_in_website>1</show_in_website>
|
42 |
-
<show_in_store>1</show_in_store>
|
43 |
-
<groups>
|
44 |
-
<settings translate="label" module="ajaxlogin">
|
45 |
-
<label>Settings</label>
|
46 |
-
<frontend_type>text</frontend_type>
|
47 |
-
<sort_order>200</sort_order>
|
48 |
-
<show_in_default>1</show_in_default>
|
49 |
-
<show_in_website>1</show_in_website>
|
50 |
-
<show_in_store>1</show_in_store>
|
51 |
-
<fields>
|
52 |
-
<name translate="label">
|
53 |
-
<label>Settings</label>
|
54 |
-
</name>
|
55 |
-
<enable translate="label">
|
56 |
-
<label>Enable</label>
|
57 |
-
<frontend_type>select</frontend_type>
|
58 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
59 |
-
<sort_order>10</sort_order>
|
60 |
-
<show_in_default>1</show_in_default>
|
61 |
-
<show_in_website>1</show_in_website>
|
62 |
-
<show_in_store>1</show_in_store>
|
63 |
-
</enable>
|
64 |
-
</fields>
|
65 |
-
</settings>
|
66 |
-
</groups>
|
67 |
-
</ajaxlogin>
|
68 |
-
</sections>
|
69 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Magemall/Ajaxlogin/Block/Form.php
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* GIKO / LUOCHUNHUI.COM
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to LUOCHUNHUI/GIKO (OSL 3.0).
|
8 |
+
* License, which extends the Open Software License (OSL 3.0).
|
9 |
+
* The GIKO Extension License is available at this URL:
|
10 |
+
* http://magento.luochunhui.com/cms/magento_extension_license.html
|
11 |
+
* The Open Software License is available at this URL:
|
12 |
+
* http://opensource.org/licenses/osl-3.0.php
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* By adding to, editing, or in any way modifying this code, GIKO is
|
18 |
+
* not held liable for any inconsistencies or abnormalities in the
|
19 |
+
* behaviour of this code.
|
20 |
+
* By adding to, editing, or in any way modifying this code, the Licensee
|
21 |
+
* terminates any agreement of support offered by GIKO, outlined in the
|
22 |
+
* provided GIKO Extension License.
|
23 |
+
* Upon discovery of modified code in the process of support, the Licensee
|
24 |
+
* is still held accountable for any and all billable time GIKO spent
|
25 |
+
* during the support process.
|
26 |
+
* GIKO does not guarantee compatibility with any other framework extension.
|
27 |
+
* GIKO is not responsbile for any inconsistencies or abnormalities in the
|
28 |
+
* behaviour of this code if caused by other framework extension.
|
29 |
+
* If you did not receive a copy of the license, please send an email to
|
30 |
+
* wo@luochunhui.com, so we can send you a copy immediately.
|
31 |
+
*
|
32 |
+
* @category Magemall
|
33 |
+
* @copyright Copyright (c) 2012 Luoc Chunhui<wo@luochunhui.com>. (http://www.luochunhui.com)
|
34 |
+
* @license http://magento.luochunhui.com/docs/index/copyright Open Software License (OSL 3.0)
|
35 |
+
* @author Luo Chunhui <wo@luochunhui.com>
|
36 |
+
*/
|
37 |
+
|
38 |
+
/**
|
39 |
+
* Magemall Ajaxlogin Form Block.
|
40 |
+
*/
|
41 |
+
|
42 |
+
class Magemall_Ajaxlogin_Block_Form extends Mage_Core_Block_Template {
|
43 |
+
public function getMessages()
|
44 |
+
{
|
45 |
+
return Mage::getSingleton('customer/session')->getMessages(true);
|
46 |
+
}
|
47 |
+
|
48 |
+
public function getPostAction()
|
49 |
+
{
|
50 |
+
return Mage::getUrl('ajaxlogin/login/form', array('_secure'=>true));
|
51 |
+
}
|
52 |
+
|
53 |
+
public function getMethod()
|
54 |
+
{
|
55 |
+
return $this->getQuote()->getMethod();
|
56 |
+
}
|
57 |
+
|
58 |
+
public function getMethodData()
|
59 |
+
{
|
60 |
+
return $this->getCheckout()->getMethodData();
|
61 |
+
}
|
62 |
+
|
63 |
+
public function getSuccessUrl()
|
64 |
+
{
|
65 |
+
return $this->getUrl('*/*');
|
66 |
+
}
|
67 |
+
|
68 |
+
public function getErrorUrl()
|
69 |
+
{
|
70 |
+
return $this->getUrl('*/*');
|
71 |
+
}
|
72 |
+
|
73 |
+
/**
|
74 |
+
* Retrieve username for form field
|
75 |
+
*
|
76 |
+
* @return string
|
77 |
+
*/
|
78 |
+
public function getUsername()
|
79 |
+
{
|
80 |
+
return Mage::getSingleton('customer/session')->getUsername(true);
|
81 |
+
}
|
82 |
+
|
83 |
+
}
|
app/code/community/Magemall/Ajaxlogin/Block/Js.php
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* GIKO / LUOCHUNHUI.COM
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to LUOCHUNHUI/GIKO (OSL 3.0).
|
8 |
+
* License, which extends the Open Software License (OSL 3.0).
|
9 |
+
* The GIKO Extension License is available at this URL:
|
10 |
+
* http://magento.luochunhui.com/cms/magento_extension_license.html
|
11 |
+
* The Open Software License is available at this URL:
|
12 |
+
* http://opensource.org/licenses/osl-3.0.php
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* By adding to, editing, or in any way modifying this code, GIKO is
|
18 |
+
* not held liable for any inconsistencies or abnormalities in the
|
19 |
+
* behaviour of this code.
|
20 |
+
* By adding to, editing, or in any way modifying this code, the Licensee
|
21 |
+
* terminates any agreement of support offered by GIKO, outlined in the
|
22 |
+
* provided GIKO Extension License.
|
23 |
+
* Upon discovery of modified code in the process of support, the Licensee
|
24 |
+
* is still held accountable for any and all billable time GIKO spent
|
25 |
+
* during the support process.
|
26 |
+
* GIKO does not guarantee compatibility with any other framework extension.
|
27 |
+
* GIKO is not responsbile for any inconsistencies or abnormalities in the
|
28 |
+
* behaviour of this code if caused by other framework extension.
|
29 |
+
* If you did not receive a copy of the license, please send an email to
|
30 |
+
* wo@luochunhui.com, so we can send you a copy immediately.
|
31 |
+
*
|
32 |
+
* @category Magemall
|
33 |
+
* @copyright Copyright (c) 2012 Luoc Chunhui<wo@luochunhui.com>. (http://www.luochunhui.com)
|
34 |
+
* @license http://magento.luochunhui.com/docs/index/copyright Open Software License (OSL 3.0)
|
35 |
+
* @author Luo Chunhui <wo@luochunhui.com>
|
36 |
+
*/
|
37 |
+
|
38 |
+
/**
|
39 |
+
* Magemall Ajaxlogin JS Block.
|
40 |
+
*/
|
41 |
+
class Magemall_Ajaxlogin_Block_Js extends Mage_Core_Block_Text
|
42 |
+
{
|
43 |
+
/**
|
44 |
+
* Prepare and return block's html output
|
45 |
+
*
|
46 |
+
* @return string
|
47 |
+
*/
|
48 |
+
protected function _toHtml()
|
49 |
+
{
|
50 |
+
if (!Mage::getStoreConfigFlag('ajaxlogin/settings/enable')) {
|
51 |
+
return '';
|
52 |
+
}
|
53 |
+
if (Mage::getSingleton('customer/session')->isLoggedIn()) {
|
54 |
+
return '';
|
55 |
+
}
|
56 |
+
|
57 |
+
$jsTiny = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS) . 'magemall/tinybox.js';
|
58 |
+
$jsMain = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS) . 'magemall/ajaxlogin.js';
|
59 |
+
$cssMain = $this->getSkinUrl('css/ajaxlogin.css');
|
60 |
+
|
61 |
+
$url = $this->getUrl('ajaxlogin/login/form/');
|
62 |
+
$html = <<<HTML
|
63 |
+
<!-- AjaxLogin -->
|
64 |
+
<link rel="stylesheet" type="text/css" href="{$cssMain}" media="all" />
|
65 |
+
<script type="text/javascript" src="{$jsTiny}"></script>
|
66 |
+
<script type="text/javascript" src="{$jsMain}"></script>
|
67 |
+
<script type="text/javascript">
|
68 |
+
var G_AJAXLOGIN_URL = "{$url}";
|
69 |
+
$$("a[href*=customer/account/login]").each(function(item) {
|
70 |
+
item.href='javascript:void(0)';
|
71 |
+
Event.observe(item, 'click', showloginbox);
|
72 |
+
});
|
73 |
+
</script>
|
74 |
+
<!-- End Giko AjaxLogin Code -->
|
75 |
+
<!-- Get free from http://magento.luochunhui.com/ajaxlogin.html -->
|
76 |
+
HTML;
|
77 |
+
$this->addText($html);
|
78 |
+
|
79 |
+
return parent::_toHtml();
|
80 |
+
}
|
81 |
+
}
|
app/code/community/Magemall/Ajaxlogin/Helper/Data.php
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* GIKO / LUOCHUNHUI.COM
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to LUOCHUNHUI/GIKO (OSL 3.0).
|
8 |
+
* License, which extends the Open Software License (OSL 3.0).
|
9 |
+
* The GIKO Extension License is available at this URL:
|
10 |
+
* http://magento.luochunhui.com/cms/magento_extension_license.html
|
11 |
+
* The Open Software License is available at this URL:
|
12 |
+
* http://opensource.org/licenses/osl-3.0.php
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* By adding to, editing, or in any way modifying this code, GIKO is
|
18 |
+
* not held liable for any inconsistencies or abnormalities in the
|
19 |
+
* behaviour of this code.
|
20 |
+
* By adding to, editing, or in any way modifying this code, the Licensee
|
21 |
+
* terminates any agreement of support offered by GIKO, outlined in the
|
22 |
+
* provided GIKO Extension License.
|
23 |
+
* Upon discovery of modified code in the process of support, the Licensee
|
24 |
+
* is still held accountable for any and all billable time GIKO spent
|
25 |
+
* during the support process.
|
26 |
+
* GIKO does not guarantee compatibility with any other framework extension.
|
27 |
+
* GIKO is not responsbile for any inconsistencies or abnormalities in the
|
28 |
+
* behaviour of this code if caused by other framework extension.
|
29 |
+
* If you did not receive a copy of the license, please send an email to
|
30 |
+
* wo@luochunhui.com, so we can send you a copy immediately.
|
31 |
+
*
|
32 |
+
* @category Magemall
|
33 |
+
* @copyright Copyright (c) 2012 Luoc Chunhui<wo@luochunhui.com>. (http://www.luochunhui.com)
|
34 |
+
* @license http://magento.luochunhui.com/docs/index/copyright Open Software License (OSL 3.0)
|
35 |
+
* @author Luo Chunhui <wo@luochunhui.com>
|
36 |
+
*/
|
37 |
+
class Magemall_Ajaxlogin_Helper_Data extends Mage_Core_Helper_Abstract {
|
38 |
+
|
39 |
+
}
|
app/code/community/{Giko → Magemall}/Ajaxlogin/controllers/LoginController.php
RENAMED
@@ -1,5 +1,45 @@
|
|
1 |
<?php
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
{
|
4 |
/**
|
5 |
* Retrieve customer session model object
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* GIKO / LUOCHUNHUI.COM
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to LUOCHUNHUI/GIKO (OSL 3.0).
|
8 |
+
* License, which extends the Open Software License (OSL 3.0).
|
9 |
+
* The GIKO Extension License is available at this URL:
|
10 |
+
* http://magento.luochunhui.com/cms/magento_extension_license.html
|
11 |
+
* The Open Software License is available at this URL:
|
12 |
+
* http://opensource.org/licenses/osl-3.0.php
|
13 |
+
*
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* By adding to, editing, or in any way modifying this code, GIKO is
|
18 |
+
* not held liable for any inconsistencies or abnormalities in the
|
19 |
+
* behaviour of this code.
|
20 |
+
* By adding to, editing, or in any way modifying this code, the Licensee
|
21 |
+
* terminates any agreement of support offered by GIKO, outlined in the
|
22 |
+
* provided GIKO Extension License.
|
23 |
+
* Upon discovery of modified code in the process of support, the Licensee
|
24 |
+
* is still held accountable for any and all billable time GIKO spent
|
25 |
+
* during the support process.
|
26 |
+
* GIKO does not guarantee compatibility with any other framework extension.
|
27 |
+
* GIKO is not responsbile for any inconsistencies or abnormalities in the
|
28 |
+
* behaviour of this code if caused by other framework extension.
|
29 |
+
* If you did not receive a copy of the license, please send an email to
|
30 |
+
* wo@luochunhui.com, so we can send you a copy immediately.
|
31 |
+
*
|
32 |
+
* @category Magemall
|
33 |
+
* @copyright Copyright (c) 2012 Luoc Chunhui<wo@luochunhui.com>. (http://www.luochunhui.com)
|
34 |
+
* @license http://magento.luochunhui.com/docs/index/copyright Open Software License (OSL 3.0)
|
35 |
+
* @author Luo Chunhui <wo@luochunhui.com>
|
36 |
+
*/
|
37 |
+
|
38 |
+
/**
|
39 |
+
* Magemall Ajaxlogin Login Controller
|
40 |
+
*/
|
41 |
+
|
42 |
+
class Magemall_Ajaxlogin_LoginController extends Mage_Core_Controller_Front_Action
|
43 |
{
|
44 |
/**
|
45 |
* Retrieve customer session model object
|
app/code/community/Magemall/Ajaxlogin/etc/config.xml
ADDED
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* GIKO / LUOCHUNHUI.COM
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to LUOCHUNHUI/GIKO (OSL 3.0).
|
9 |
+
* License, which extends the Open Software License (OSL 3.0).
|
10 |
+
* The GIKO Extension License is available at this URL:
|
11 |
+
* http://magento.luochunhui.com/cms/magento_extension_license.html
|
12 |
+
* The Open Software License is available at this URL:
|
13 |
+
* http://opensource.org/licenses/osl-3.0.php
|
14 |
+
*
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* By adding to, editing, or in any way modifying this code, GIKO is
|
19 |
+
* not held liable for any inconsistencies or abnormalities in the
|
20 |
+
* behaviour of this code.
|
21 |
+
* By adding to, editing, or in any way modifying this code, the Licensee
|
22 |
+
* terminates any agreement of support offered by GIKO, outlined in the
|
23 |
+
* provided GIKO Extension License.
|
24 |
+
* Upon discovery of modified code in the process of support, the Licensee
|
25 |
+
* is still held accountable for any and all billable time GIKO spent
|
26 |
+
* during the support process.
|
27 |
+
* GIKO does not guarantee compatibility with any other framework extension.
|
28 |
+
* GIKO is not responsbile for any inconsistencies or abnormalities in the
|
29 |
+
* behaviour of this code if caused by other framework extension.
|
30 |
+
* If you did not receive a copy of the license, please send an email to
|
31 |
+
* wo@luochunhui.com, so we can send you a copy immediately.
|
32 |
+
*
|
33 |
+
* @category Magemall
|
34 |
+
* @copyright Copyright (c) 2012 Luoc Chunhui<wo@luochunhui.com>. (http://www.luochunhui.com)
|
35 |
+
* @license http://magento.luochunhui.com/docs/index/copyright Open Software License (OSL 3.0)
|
36 |
+
* @author Luo Chunhui <wo@luochunhui.com>
|
37 |
+
*/
|
38 |
+
-->
|
39 |
+
<config>
|
40 |
+
<modules>
|
41 |
+
<Magemall_Ajaxlogin>
|
42 |
+
<version>1.0.0</version>
|
43 |
+
</Magemall_Ajaxlogin>
|
44 |
+
</modules>
|
45 |
+
|
46 |
+
<global>
|
47 |
+
<models>
|
48 |
+
<ajaxlogin>
|
49 |
+
<class>Magemall_Ajaxlogin_Model</class>
|
50 |
+
</ajaxlogin>
|
51 |
+
</models>
|
52 |
+
|
53 |
+
<helpers>
|
54 |
+
<ajaxlogin>
|
55 |
+
<class>Magemall_Ajaxlogin_Helper</class>
|
56 |
+
</ajaxlogin>
|
57 |
+
</helpers>
|
58 |
+
|
59 |
+
<blocks>
|
60 |
+
<ajaxlogin>
|
61 |
+
<class>Magemall_Ajaxlogin_Block</class>
|
62 |
+
</ajaxlogin>
|
63 |
+
</blocks>
|
64 |
+
</global>
|
65 |
+
|
66 |
+
<adminhtml>
|
67 |
+
<acl>
|
68 |
+
<resources>
|
69 |
+
<admin>
|
70 |
+
<children>
|
71 |
+
<system>
|
72 |
+
<children>
|
73 |
+
<config>
|
74 |
+
<children>
|
75 |
+
<ajaxlogin>
|
76 |
+
<title>Ajaxlogin</title>
|
77 |
+
</ajaxlogin>
|
78 |
+
</children>
|
79 |
+
</config>
|
80 |
+
</children>
|
81 |
+
</system>
|
82 |
+
</children>
|
83 |
+
</admin>
|
84 |
+
</resources>
|
85 |
+
</acl>
|
86 |
+
</adminhtml>
|
87 |
+
|
88 |
+
<frontend>
|
89 |
+
<secure_url>
|
90 |
+
<ajaxlogin_index>/ajaxlogin/login</ajaxlogin_index>
|
91 |
+
</secure_url>
|
92 |
+
<routers>
|
93 |
+
<ajaxlogin>
|
94 |
+
<use>standard</use>
|
95 |
+
<args>
|
96 |
+
<module>Magemall_Ajaxlogin</module>
|
97 |
+
<frontName>ajaxlogin</frontName>
|
98 |
+
</args>
|
99 |
+
</ajaxlogin>
|
100 |
+
</routers>
|
101 |
+
<layout>
|
102 |
+
<updates>
|
103 |
+
<ajaxlogin>
|
104 |
+
<file>ajaxlogin.xml</file>
|
105 |
+
</ajaxlogin>
|
106 |
+
</updates>
|
107 |
+
</layout>
|
108 |
+
</frontend>
|
109 |
+
|
110 |
+
<default>
|
111 |
+
<ajaxlogin>
|
112 |
+
<settings>
|
113 |
+
<enable>1</enable>
|
114 |
+
</settings>
|
115 |
+
</payment>
|
116 |
+
</default>
|
117 |
+
|
118 |
+
</config>
|
app/code/community/Magemall/Ajaxlogin/etc/system.xml
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* GIKO / LUOCHUNHUI.COM
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to LUOCHUNHUI/GIKO (OSL 3.0).
|
9 |
+
* License, which extends the Open Software License (OSL 3.0).
|
10 |
+
* The GIKO Extension License is available at this URL:
|
11 |
+
* http://magento.luochunhui.com/cms/magento_extension_license.html
|
12 |
+
* The Open Software License is available at this URL:
|
13 |
+
* http://opensource.org/licenses/osl-3.0.php
|
14 |
+
*
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* By adding to, editing, or in any way modifying this code, GIKO is
|
19 |
+
* not held liable for any inconsistencies or abnormalities in the
|
20 |
+
* behaviour of this code.
|
21 |
+
* By adding to, editing, or in any way modifying this code, the Licensee
|
22 |
+
* terminates any agreement of support offered by GIKO, outlined in the
|
23 |
+
* provided GIKO Extension License.
|
24 |
+
* Upon discovery of modified code in the process of support, the Licensee
|
25 |
+
* is still held accountable for any and all billable time GIKO spent
|
26 |
+
* during the support process.
|
27 |
+
* GIKO does not guarantee compatibility with any other framework extension.
|
28 |
+
* GIKO is not responsbile for any inconsistencies or abnormalities in the
|
29 |
+
* behaviour of this code if caused by other framework extension.
|
30 |
+
* If you did not receive a copy of the license, please send an email to
|
31 |
+
* wo@luochunhui.com, so we can send you a copy immediately.
|
32 |
+
*
|
33 |
+
* @category Magemall
|
34 |
+
* @copyright Copyright (c) 2012 Luoc Chunhui<wo@luochunhui.com>. (http://www.luochunhui.com)
|
35 |
+
* @license http://magento.luochunhui.com/docs/index/copyright Open Software License (OSL 3.0)
|
36 |
+
* @author Luo Chunhui <wo@luochunhui.com>
|
37 |
+
*/
|
38 |
+
-->
|
39 |
+
<config>
|
40 |
+
<tabs>
|
41 |
+
<magemall translate="label">
|
42 |
+
<label>MageMall Extensions</label>
|
43 |
+
<sort_order>9</sort_order>
|
44 |
+
</magemall>
|
45 |
+
</tabs>
|
46 |
+
<sections>
|
47 |
+
<ajaxlogin translate="label" module="ajaxlogin">
|
48 |
+
<label>MageMall AjaxLogin</label>
|
49 |
+
<tab>magemall</tab>
|
50 |
+
<sort_order>100</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 |
+
<groups>
|
55 |
+
<settings translate="label" module="ajaxlogin">
|
56 |
+
<label>Settings</label>
|
57 |
+
<frontend_type>text</frontend_type>
|
58 |
+
<sort_order>200</sort_order>
|
59 |
+
<show_in_default>1</show_in_default>
|
60 |
+
<show_in_website>1</show_in_website>
|
61 |
+
<show_in_store>1</show_in_store>
|
62 |
+
<fields>
|
63 |
+
<name translate="label">
|
64 |
+
<label>Settings</label>
|
65 |
+
</name>
|
66 |
+
<enable translate="label">
|
67 |
+
<label>Enable</label>
|
68 |
+
<frontend_type>select</frontend_type>
|
69 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
70 |
+
<sort_order>10</sort_order>
|
71 |
+
<show_in_default>1</show_in_default>
|
72 |
+
<show_in_website>1</show_in_website>
|
73 |
+
<show_in_store>1</show_in_store>
|
74 |
+
</enable>
|
75 |
+
</fields>
|
76 |
+
</settings>
|
77 |
+
</groups>
|
78 |
+
</ajaxlogin>
|
79 |
+
</sections>
|
80 |
+
</config>
|
app/design/frontend/base/default/layout/ajaxlogin.xml
DELETED
@@ -1,58 +0,0 @@
|
|
1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
-
<!--
|
3 |
-
/**
|
4 |
-
* luochunhui.com
|
5 |
-
*
|
6 |
-
* COPYRIGHT (c) 2011 BY LuoChunhui. ALL RIGHTS
|
7 |
-
* RESERVED. The source code, design, and structure of THIS PROGRAM are trade secrets.
|
8 |
-
* You will not disassemble, decompile, or reverse engineer it, in whole or in part,
|
9 |
-
except to the extent expressly permitted by law.
|
10 |
-
You will not use THIS PROGRAM for illegal purposes. You will comply with all export laws. Giko_Tenpay is licensed, not sold.
|
11 |
-
*
|
12 |
-
* DISCLAIMER
|
13 |
-
*
|
14 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
15 |
-
* versions in the future. If you wish to customize Magento for your
|
16 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
17 |
-
*
|
18 |
-
* @category Payment
|
19 |
-
* @package Giko_Tenpay
|
20 |
-
* @author luochunhui
|
21 |
-
* @copyright Copyright (c) 2011 LuoChunhui (http://www.luochunhui.com)
|
22 |
-
*
|
23 |
-
*
|
24 |
-
*/
|
25 |
-
-->
|
26 |
-
|
27 |
-
<layout version="0.1.0">
|
28 |
-
<default>
|
29 |
-
<reference name="head">
|
30 |
-
<action method="addJs" ifconfig="ajaxlogin/settings/enable"><script>giko/tinybox.js</script></action>
|
31 |
-
<action method="addJs" ifconfig="ajaxlogin/settings/enable"><script>giko/ajaxlogin.js</script></action>
|
32 |
-
<action method="addCss"><stylesheet>css/giko/ajaxlogin.css</stylesheet></action>
|
33 |
-
</reference>
|
34 |
-
|
35 |
-
<reference name="before_body_end">
|
36 |
-
<block type="ajaxlogin/js" name="ajaxlogin" as="ajaxlogin" />
|
37 |
-
</reference>
|
38 |
-
</default>
|
39 |
-
|
40 |
-
<ajaxlogin_login_form translate="label">
|
41 |
-
<!--
|
42 |
-
<reference name="head">
|
43 |
-
<action method="addJs"><script>giko/ajaxlogin.js</script></action>
|
44 |
-
<action method="addCss"><script>css/giko/ajaxlogin.css</script></action>
|
45 |
-
</reference>
|
46 |
-
-->
|
47 |
-
|
48 |
-
<reference name="root">
|
49 |
-
<action method="setTemplate"><template>page/empty.phtml</template></action>
|
50 |
-
<action method="setHeaderTitle" translate="title" module="contacts"><title>Contact Us</title></action>
|
51 |
-
</reference>
|
52 |
-
|
53 |
-
<reference name="content">
|
54 |
-
<block type="ajaxlogin/form" name="ajaxlogin_form" template="ajaxlogin/form.phtml"></block>
|
55 |
-
</reference>
|
56 |
-
|
57 |
-
</ajaxlogin_login_form>
|
58 |
-
</layout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/default/default/layout/ajaxlogin.xml
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* GIKO / LUOCHUNHUI.COM
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to LUOCHUNHUI/GIKO (OSL 3.0).
|
9 |
+
* License, which extends the Open Software License (OSL 3.0).
|
10 |
+
* The GIKO Extension License is available at this URL:
|
11 |
+
* http://magento.luochunhui.com/cms/magento_extension_license.html
|
12 |
+
* The Open Software License is available at this URL:
|
13 |
+
* http://opensource.org/licenses/osl-3.0.php
|
14 |
+
*
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* By adding to, editing, or in any way modifying this code, GIKO is
|
19 |
+
* not held liable for any inconsistencies or abnormalities in the
|
20 |
+
* behaviour of this code.
|
21 |
+
* By adding to, editing, or in any way modifying this code, the Licensee
|
22 |
+
* terminates any agreement of support offered by GIKO, outlined in the
|
23 |
+
* provided GIKO Extension License.
|
24 |
+
* Upon discovery of modified code in the process of support, the Licensee
|
25 |
+
* is still held accountable for any and all billable time GIKO spent
|
26 |
+
* during the support process.
|
27 |
+
* GIKO does not guarantee compatibility with any other framework extension.
|
28 |
+
* GIKO is not responsbile for any inconsistencies or abnormalities in the
|
29 |
+
* behaviour of this code if caused by other framework extension.
|
30 |
+
* If you did not receive a copy of the license, please send an email to
|
31 |
+
* wo@luochunhui.com, so we can send you a copy immediately.
|
32 |
+
*
|
33 |
+
* @category Magemall
|
34 |
+
* @copyright Copyright (c) 2012 Luoc Chunhui<wo@luochunhui.com>. (http://www.luochunhui.com)
|
35 |
+
* @license http://magento.luochunhui.com/docs/index/copyright Open Software License (OSL 3.0)
|
36 |
+
* @author Luo Chunhui <wo@luochunhui.com>
|
37 |
+
*/
|
38 |
+
-->
|
39 |
+
|
40 |
+
<layout version="0.1.0">
|
41 |
+
<default>
|
42 |
+
<reference name="before_body_end">
|
43 |
+
<block name="ajaxlogin_setting" template="ajaxlogin/js.phtml" before="-"/>
|
44 |
+
<block type="ajaxlogin/js" name="ajaxlogin" as="ajaxlogin" />
|
45 |
+
</reference>
|
46 |
+
</default>
|
47 |
+
|
48 |
+
<ajaxlogin_login_form translate="label">
|
49 |
+
<reference name="head">
|
50 |
+
<action method="addJs"><script>magemall/ajaxlogin.js</script></action>
|
51 |
+
<action method="addCss"><script>magemall/css/ajaxlogin.css</script></action>
|
52 |
+
</reference>
|
53 |
+
|
54 |
+
<reference name="root">
|
55 |
+
<action method="setTemplate"><template>page/empty.phtml</template></action>
|
56 |
+
<action method="setHeaderTitle" translate="title" module="contacts"><title>Contact Us</title></action>
|
57 |
+
</reference>
|
58 |
+
|
59 |
+
<reference name="content">
|
60 |
+
<block type="ajaxlogin/form" name="ajaxlogin_form" template="ajaxlogin/form.phtml"></block>
|
61 |
+
</reference>
|
62 |
+
|
63 |
+
</ajaxlogin_login_form>
|
64 |
+
</layout>
|
app/design/frontend/{base → default}/default/template/ajaxlogin/form.phtml
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<html>
|
2 |
<head>
|
3 |
-
<script type="text/javascript" src="/
|
4 |
</head>
|
5 |
<body>
|
6 |
<div class="col-2">
|
1 |
<html>
|
2 |
<head>
|
3 |
+
<script type="text/javascript" src="<?php echo $this->getSkinUrl('magemall/ajaxlogin.js');?>"></script>
|
4 |
</head>
|
5 |
<body>
|
6 |
<div class="col-2">
|
app/design/frontend/default/default/template/ajaxlogin/js.phtml
ADDED
File without changes
|
app/etc/modules/{Giko_Ajaxlogin.xml → Magemall_Ajaxlogin.xml}
RENAMED
@@ -1,12 +1,9 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
<modules>
|
4 |
-
<
|
5 |
<active>true</active>
|
6 |
<codePool>community</codePool>
|
7 |
-
|
8 |
-
<Mage_Checkout />
|
9 |
-
</depends>
|
10 |
-
</Giko_Ajaxlogin>
|
11 |
</modules>
|
12 |
</config>
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
<modules>
|
4 |
+
<Magemall_Ajaxlogin>
|
5 |
<active>true</active>
|
6 |
<codePool>community</codePool>
|
7 |
+
</Magemall_Ajaxlogin>
|
|
|
|
|
|
|
8 |
</modules>
|
9 |
</config>
|
js/{giko → magemall}/ajaxlogin.js
RENAMED
@@ -1,5 +1,3 @@
|
|
1 |
-
var G_AJAXLOGIN_URL = '/ajaxlogin/login/form/';
|
2 |
-
|
3 |
function onepageLogin(button)
|
4 |
{
|
5 |
var loginForm = button.up('form');
|
|
|
|
|
1 |
function onepageLogin(button)
|
2 |
{
|
3 |
var loginForm = button.up('form');
|
js/{giko → magemall}/tinybox.js
RENAMED
File without changes
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Giko_AjaxLogin</name>
|
4 |
-
<version>0.
|
5 |
<stability>stable</stability>
|
6 |
-
<license uri="http://
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>
|
10 |
-
<description>
|
11 |
-
<notes>
|
12 |
-
<authors><author><name>
|
13 |
-
<date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="
|
16 |
<compatible/>
|
17 |
-
<dependencies><required><php><min>5.2.
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Giko_AjaxLogin</name>
|
4 |
+
<version>1.0.0</version>
|
5 |
<stability>stable</stability>
|
6 |
+
<license uri="http://magento.luochunhui.com/docs/index/copyright">Privary</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>magemall</summary>
|
10 |
+
<description>magemall</description>
|
11 |
+
<notes>Magemall AjaxLogin will replace the login link to an ajax popup box.It's easy to use without any code change</notes>
|
12 |
+
<authors><author><name>LuoChunhui</name><user>LuoChunhui</user><email>wo@luochunhui.com</email></author></authors>
|
13 |
+
<date>2012-08-05</date>
|
14 |
+
<time>00:41:52</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Magemall"><dir name="Ajaxlogin"><dir name="Block"><file name="Form.php" hash="643d16a4f728b0d8c2325599cc084389"/><file name="Js.php" hash="6d4760f07f34eaf3109757267644062e"/></dir><dir name="Helper"><file name="Data.php" hash="a7e98ac05004722db12eb5a44846cccb"/></dir><dir name="controllers"><file name="LoginController.php" hash="a0b47b69ced071bbf8f7b611fc6b0ae7"/></dir><dir name="etc"><file name="config.xml" hash="97527a036bc1e3efc61df74c839a2f71"/><file name="system.xml" hash="4f074dfa9211dff565e47c2c808d8484"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="ajaxlogin"><file name="form.phtml" hash="3d1b9a9ff3a43d49ae0ccbef6c03db1e"/><file name="js.phtml" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir><dir name="layout"><file name="ajaxlogin.xml" hash="4183a1f12d082ba4ded8019b3ac2ec10"/></dir></dir></dir></dir></target><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="Magemall_Ajaxlogin.xml" hash="03b60211a52214eb6f1d938a7d7de50a"/></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="magemall"><file name="ajaxlogin.js" hash="ee0f8315fcf25815328ce5e3fafb7cde"/><file name="tinybox.js" hash="1a6b0ef907a4f5cc136ef0846be88a05"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="images"><dir name="ajaxlogin"><file name="close.png" hash="4278a8b021acb550ad96cdddb2db6d8f"/><file name="preload.gif" hash="bf3ec68db23e93ba2ec795ef558e96da"/></dir></dir><dir name="css"><file name="ajaxlogin.css" hash="f51502b90ad15197150b92e4f5ca7744"/></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.2.13</min><max>5.4.6</max></php></required></dependencies>
|
18 |
</package>
|
skin/frontend/{base/default/css/giko → default/default/css}/ajaxlogin.css
RENAMED
@@ -1,8 +1,8 @@
|
|
1 |
|
2 |
.tbox {position:absolute; display:none; padding:14px 17px; z-index:900}
|
3 |
-
.tinner {padding:15px; -moz-border-radius:5px; border-radius:5px; background:#fff url(
|
4 |
.tmask {position:absolute; display:none; top:0px; left:0px; height:100%; width:100%; background:#000; z-index:800}
|
5 |
-
.tclose {position:absolute; top:0px; right:0px; width:30px; height:30px; cursor:pointer; background:url(
|
6 |
.tclose:hover {background-position:0 -30px}
|
7 |
|
8 |
#ajaxlogin_form .form-list .input-box {
|
1 |
|
2 |
.tbox {position:absolute; display:none; padding:14px 17px; z-index:900}
|
3 |
+
.tinner {padding:15px; -moz-border-radius:5px; border-radius:5px; background:#fff url(../images/ajaxlogin/preload.gif) no-repeat 50% 50%; border-right:1px solid #333; border-bottom:1px solid #333}
|
4 |
.tmask {position:absolute; display:none; top:0px; left:0px; height:100%; width:100%; background:#000; z-index:800}
|
5 |
+
.tclose {position:absolute; top:0px; right:0px; width:30px; height:30px; cursor:pointer; background:url(../images/ajaxlogin/close.png) no-repeat}
|
6 |
.tclose:hover {background-position:0 -30px}
|
7 |
|
8 |
#ajaxlogin_form .form-list .input-box {
|
skin/frontend/{base/default/images/giko → default/default/images}/ajaxlogin/close.png
RENAMED
File without changes
|
skin/frontend/{base/default/images/giko → default/default/images}/ajaxlogin/preload.gif
RENAMED
File without changes
|