Version Notes
1.0.0
Download this release
Release Info
Developer | Magento Core Team |
Extension | Magazento_Osxlogin |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/community/Magazento/Osxlogin/Block/Links.php +22 -0
- app/code/community/Magazento/Osxlogin/Helper/Data.php +7 -0
- app/code/community/Magazento/Osxlogin/etc/config.xml +58 -0
- app/code/community/Magazento/Osxlogin/etc/config_.xml +49 -0
- app/design/frontend/default/default/layout/magazento_osxlogin.xml +45 -0
- app/design/frontend/default/default/template/magazento/osxlogin/form.phtml +37 -0
- app/etc/modules/Magazento_Osxlogin.xml +9 -0
- app/locale/en_US/Magazento_Osxlogin.csv +0 -0
- package.xml +18 -0
app/code/community/Magazento/Osxlogin/Block/Links.php
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Magazento_Osxlogin_Block_Links extends Mage_Customer_Block_Account_Navigation
|
4 |
+
{
|
5 |
+
|
6 |
+
public function addTopLink()
|
7 |
+
{
|
8 |
+
if (!Mage::getSingleton('customer/session')->isLoggedIn()) {
|
9 |
+
$storeId = Mage::app()->getStore()->getId();
|
10 |
+
$storeUrl = Mage::getModel('core/store')->load($storeId)->getUrl();
|
11 |
+
|
12 |
+
$route = $storeUrl.'#';
|
13 |
+
$title = 'Magazento-Log-In';
|
14 |
+
$this->getParentBlock()->addLink($title, '#', $title, false, array(), 15, null, 'class="osx"');
|
15 |
+
}
|
16 |
+
|
17 |
+
}
|
18 |
+
|
19 |
+
|
20 |
+
|
21 |
+
|
22 |
+
}
|
app/code/community/Magazento/Osxlogin/Helper/Data.php
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Magazento_Osxlogin_Helper_Data extends Mage_Core_Helper_Abstract
|
4 |
+
{
|
5 |
+
|
6 |
+
|
7 |
+
}
|
app/code/community/Magazento/Osxlogin/etc/config.xml
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Magazento_Osxlogin>
|
5 |
+
<version>0.1.0</version>
|
6 |
+
</Magazento_Osxlogin>
|
7 |
+
</modules>
|
8 |
+
<frontend>
|
9 |
+
<layout>
|
10 |
+
<updates>
|
11 |
+
<osxlogin>
|
12 |
+
<file>magazento_osxlogin.xml</file>
|
13 |
+
</osxlogin>
|
14 |
+
</updates>
|
15 |
+
</layout>
|
16 |
+
<translate>
|
17 |
+
<modules>
|
18 |
+
<Magazento_Osxmenu>
|
19 |
+
<files>
|
20 |
+
<default>Magazento_Osxmenu.csv</default>
|
21 |
+
</files>
|
22 |
+
</Magazento_Osxmenu>
|
23 |
+
</modules>
|
24 |
+
</translate>
|
25 |
+
</frontend>
|
26 |
+
<global>
|
27 |
+
<resources>
|
28 |
+
<osxlogin_setup>
|
29 |
+
<setup>
|
30 |
+
<module>Magazento_Osxlogin</module>
|
31 |
+
</setup>
|
32 |
+
<connection>
|
33 |
+
<use>core_setup</use>
|
34 |
+
</connection>
|
35 |
+
</osxlogin_setup>
|
36 |
+
<osxlogin_write>
|
37 |
+
<connection>
|
38 |
+
<use>core_write</use>
|
39 |
+
</connection>
|
40 |
+
</osxlogin_write>
|
41 |
+
<osxlogin_read>
|
42 |
+
<connection>
|
43 |
+
<use>core_read</use>
|
44 |
+
</connection>
|
45 |
+
</osxlogin_read>
|
46 |
+
</resources>
|
47 |
+
<blocks>
|
48 |
+
<osxlogin>
|
49 |
+
<class>Magazento_Osxlogin_Block</class>
|
50 |
+
</osxlogin>
|
51 |
+
</blocks>
|
52 |
+
<helpers>
|
53 |
+
<osxlogin>
|
54 |
+
<class>Magazento_Osxlogin_Helper</class>
|
55 |
+
</osxlogin>
|
56 |
+
</helpers>
|
57 |
+
</global>
|
58 |
+
</config>
|
app/code/community/Magazento/Osxlogin/etc/config_.xml
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Magazento_Osxlogin>
|
5 |
+
<version>0.1.0</version>
|
6 |
+
</Magazento_Osxlogin>
|
7 |
+
</modules>
|
8 |
+
<frontend>
|
9 |
+
<layout>
|
10 |
+
<updates>
|
11 |
+
<osxlogin>
|
12 |
+
<file>magazento_osxlogin.xml</file>
|
13 |
+
</osxlogin>
|
14 |
+
</updates>
|
15 |
+
</layout>
|
16 |
+
</frontend>
|
17 |
+
<resources>
|
18 |
+
<osxlogin_setup>
|
19 |
+
<setup>
|
20 |
+
<module>Magazento_Osxlogin</module>
|
21 |
+
</setup>
|
22 |
+
<connection>
|
23 |
+
<use>core_setup</use>
|
24 |
+
</connection>
|
25 |
+
</osxlogin_setup>
|
26 |
+
<osxlogin_write>
|
27 |
+
<connection>
|
28 |
+
<use>core_write</use>
|
29 |
+
</connection>
|
30 |
+
</osxlogin_write>
|
31 |
+
<osxlogin_read>
|
32 |
+
<connection>
|
33 |
+
<use>core_read</use>
|
34 |
+
</connection>
|
35 |
+
</osxlogin_read>
|
36 |
+
</resources>
|
37 |
+
<blocks>
|
38 |
+
<osxlogin>
|
39 |
+
<class>Magazento_Osxlogin_Block</class>
|
40 |
+
</osxlogin>
|
41 |
+
</blocks>
|
42 |
+
<helpers>
|
43 |
+
<osxlogin>
|
44 |
+
<class>Magazento_Osxlogin_Helper</class>
|
45 |
+
</osxlogin>
|
46 |
+
</helpers>
|
47 |
+
</global>
|
48 |
+
|
49 |
+
</config>
|
app/design/frontend/default/default/layout/magazento_osxlogin.xml
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
|
4 |
+
<default>
|
5 |
+
<reference name="head">
|
6 |
+
<action method="addCss"><stylesheet>magazento/osxlogin/osx.css</stylesheet></action>
|
7 |
+
<action method="addItem">
|
8 |
+
<type>skin_js</type>
|
9 |
+
<name>magazento/jquery-1.5.1.min.js</name>
|
10 |
+
<params/>
|
11 |
+
</action>
|
12 |
+
<action method="addItem">
|
13 |
+
<type>skin_js</type>
|
14 |
+
<name>magazento/osxlogin/jquery.simplemodal.js</name>
|
15 |
+
<params/>
|
16 |
+
</action>
|
17 |
+
<action method="addItem">
|
18 |
+
<type>skin_js</type>
|
19 |
+
<name>magazento/osxlogin/osx.js</name>
|
20 |
+
<params/>
|
21 |
+
</action>
|
22 |
+
</reference>
|
23 |
+
<reference name="before_body_end">
|
24 |
+
<block type="core/template" name="osxlogin" template="magazento/osxlogin/form.phtml" />
|
25 |
+
</reference>
|
26 |
+
</default>
|
27 |
+
|
28 |
+
|
29 |
+
<default>
|
30 |
+
<reference name="top.links">
|
31 |
+
<block type="osxlogin/links" name="add.reg.link">
|
32 |
+
<action method="addTopLink"></action>
|
33 |
+
</block>
|
34 |
+
</reference>
|
35 |
+
</default>
|
36 |
+
|
37 |
+
<customer_logged_out>
|
38 |
+
<reference name="top.links">
|
39 |
+
<action method="removeLinkByUrl"><url helper="customer/getLoginUrl"/></action>
|
40 |
+
<action method="removeLinkByUrl"><url helper="customer/getAccountUrl"/></action>
|
41 |
+
<remove name="checkout_cart_link"/>
|
42 |
+
<remove name="wishlist_link"/>
|
43 |
+
</reference>
|
44 |
+
</customer_logged_out>
|
45 |
+
</layout>
|
app/design/frontend/default/default/template/magazento/osxlogin/form.phtml
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!-- modal content -->
|
2 |
+
<div id="osx-modal-content">
|
3 |
+
<div id="osx-modal-title">Registered Customers</div>
|
4 |
+
<div class="close"><a href="#" class="simplemodal-close">x</a></div>
|
5 |
+
<div id="osx-modal-data">
|
6 |
+
|
7 |
+
|
8 |
+
<!-- <p>If you have an account with us, please log in.</p>-->
|
9 |
+
<div class="osx-box">
|
10 |
+
<form id="login-form" method="post" action="http://technocashier.magazento.dev/en/customer/account/loginPost/">
|
11 |
+
<ul class="form-list group-select">
|
12 |
+
<li>
|
13 |
+
<div class="input-box">
|
14 |
+
<label for="email">Email Address <span class="required">*</span></label><br>
|
15 |
+
<input type="text" title="Email Address" class="input-text validate-email required-entry" id="email" value="" name="login[username]">
|
16 |
+
</div>
|
17 |
+
</li>
|
18 |
+
<li>
|
19 |
+
<div class="input-box">
|
20 |
+
<label for="pass">Password <span class="required">*</span></label><br>
|
21 |
+
<input type="password" title="Password" id="pass" class="input-text required-entry validate-password" name="login[password]">
|
22 |
+
</div>
|
23 |
+
</li>
|
24 |
+
</ul>
|
25 |
+
<div class="buttons-set">
|
26 |
+
<a class="f-left" href="http://technocashier.magazento.dev/en/customer/account/forgotpassword/">Forgot Your Password?</a>
|
27 |
+
<button id="send2" name="send" type="submit" class="button"><span>Login</span></button>
|
28 |
+
</div>
|
29 |
+
</form>
|
30 |
+
<script type="text/javascript">
|
31 |
+
//<![CDATA[
|
32 |
+
var dataForm = new VarienForm('login-form', true);
|
33 |
+
//]]>
|
34 |
+
</script>
|
35 |
+
</div>
|
36 |
+
</div>
|
37 |
+
</div>
|
app/etc/modules/Magazento_Osxlogin.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Magazento_Osxlogin>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</Magazento_Osxlogin>
|
8 |
+
</modules>
|
9 |
+
</config>
|
app/locale/en_US/Magazento_Osxlogin.csv
ADDED
File without changes
|
package.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Magazento_Osxlogin</name>
|
4 |
+
<version>1.0.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license>GPL</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>Beautiful modal login modal window like in Apple Mac OS</summary>
|
10 |
+
<description>Usually when we think of modals, we think of dialog boxes like the one below from Google Documents. Aza’s critique applies to this kind of modal. After you call up the find/replace box, you can’t click anywhere but inside the dialog. That means you can’t scroll the document underneath the dialog or copy and paste a word from the document into the dialog box while the dialog box is displayed.</description>
|
11 |
+
<notes>1.0.0</notes>
|
12 |
+
<authors><author><name>volgodark</name><user>auto-converted</user><email>volgodark@gmail.com</email></author></authors>
|
13 |
+
<date>2011-04-16</date>
|
14 |
+
<time>09:20:44</time>
|
15 |
+
<contents><target name="magelocale"><dir name="en_US"><file name="Magazento_Osxlogin.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="magazento_osxlogin.xml" hash="12b98f4f0f299e0bd807ee1cc370c7b5"/></dir><dir name="template"><dir name="magazento"><dir name="osxlogin"><file name="form.phtml" hash="0c7567402164fd9803fb6c3d72ae5251"/></dir></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="Magazento"><dir name="Osxlogin"><dir name="Block"><file name="Links.php" hash="2c8340ff577d36afcb8c8dcb66cfe773"/></dir><dir name="etc"><file name="config.xml" hash="1b6fdfc5f1813ed8c96098c004f69fa3"/><file name="config_.xml" hash="4fdcca132f7c945e30c56e384cc609d7"/></dir><dir name="Helper"><file name="Data.php" hash="cc136e5247a7a9b518bf3f5d4feec4bc"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magazento_Osxlogin.xml" hash="c179ae0d764d7ad031ce3e4030b4e86e"/></dir></target></contents>
|
16 |
+
<compatible/>
|
17 |
+
<dependencies/>
|
18 |
+
</package>
|