Version Notes
Initial release
Download this release
Release Info
Developer | Mark Shust |
Extension | Markshust_Ajaxglobalmessages |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/community/Markshust/Ajaxglobalmessages/etc/config.xml +24 -0
- app/design/frontend/base/default/layout/markshust/ajaxglobalmessages.xml +22 -0
- app/design/frontend/base/default/template/markshust/ajaxglobalmessages.phtml +32 -0
- app/etc/modules/Markshust_Ajaxglobalmessages.xml +15 -0
- package.xml +18 -0
- skin/frontend/base/default/css/markshust/ajaxglobalmessages.css +40 -0
app/code/community/Markshust/Ajaxglobalmessages/etc/config.xml
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<!--
|
3 |
+
* @category Markshust
|
4 |
+
* @package Markshust_Ajaxglobalmessages
|
5 |
+
* @author Mark Shust <mark@shust.com>
|
6 |
+
* @license http://sam.zoy.org/wtfpl/
|
7 |
+
-->
|
8 |
+
<config>
|
9 |
+
<modules>
|
10 |
+
<Markshust_Ajaxglobalmessages>
|
11 |
+
<version>1.0.0</version>
|
12 |
+
</Markshust_Ajaxglobalmessages>
|
13 |
+
</modules>
|
14 |
+
|
15 |
+
<frontend>
|
16 |
+
<layout>
|
17 |
+
<updates>
|
18 |
+
<markshust_ajaxglobalmessages>
|
19 |
+
<file>markshust/ajaxglobalmessages.xml</file>
|
20 |
+
</markshust_ajaxglobalmessages>
|
21 |
+
</updates>
|
22 |
+
</layout>
|
23 |
+
</frontend>
|
24 |
+
</config>
|
app/design/frontend/base/default/layout/markshust/ajaxglobalmessages.xml
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<!--
|
3 |
+
* @category Markshust
|
4 |
+
* @package Markshust_Ajaxglobalmessages
|
5 |
+
* @author Mark Shust <mark@shust.com>
|
6 |
+
* @license http://sam.zoy.org/wtfpl/
|
7 |
+
-->
|
8 |
+
<layout>
|
9 |
+
<default>
|
10 |
+
<reference name="root">
|
11 |
+
<remove name="global_messages"/>
|
12 |
+
</reference>
|
13 |
+
|
14 |
+
<reference name="after_body_start">
|
15 |
+
<block type="core/template" name="markshust_ajaxglobalmessages" template="markshust/ajaxglobalmessages.phtml" before="-" />
|
16 |
+
</reference>
|
17 |
+
|
18 |
+
<reference name="head">
|
19 |
+
<action method="addCss"><stylesheet>css/markshust/ajaxglobalmessages.css</stylesheet></action>
|
20 |
+
</reference>
|
21 |
+
</default>
|
22 |
+
</layout>
|
app/design/frontend/base/default/template/markshust/ajaxglobalmessages.phtml
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @category Markshust
|
4 |
+
* @package Markshust_Ajaxglobalmessages
|
5 |
+
* @author Mark Shust <mark@shust.com>
|
6 |
+
* @license http://sam.zoy.org/wtfpl/
|
7 |
+
*/
|
8 |
+
?>
|
9 |
+
<?php if ($this->getMessagesBlock()->getMessageCollection()->count()): ?>
|
10 |
+
<div id="ajax_global_messages" style="display: none;">
|
11 |
+
<a href="javascript:void(0)" id="ajax_global_messages_close" style="display: none;" title="<?php echo $this->__('Hide messages') ?>">×</a>
|
12 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml(); ?>
|
13 |
+
</div>
|
14 |
+
<?php $this->getMessagesBlock()->getMessageCollection()->clear(); ?>
|
15 |
+
|
16 |
+
<script type="text/javascript">
|
17 |
+
//<![CDATA[
|
18 |
+
Event.observe('ajax_global_messages_close', 'click', function(){
|
19 |
+
Effect.SlideUp('ajax_global_messages', { duration: 0.4, delay: 0.3 });
|
20 |
+
Effect.Fade('ajax_global_messages_close', { duration: 0.2 });
|
21 |
+
});
|
22 |
+
setTimeout(function(){
|
23 |
+
Effect.SlideUp('ajax_global_messages', { duration: 0.4, delay: 0.3 });
|
24 |
+
Effect.Fade('ajax_global_messages_close', { duration: 0.2 });
|
25 |
+
}, 5000);
|
26 |
+
Event.observe(document, 'dom:loaded', function(){
|
27 |
+
Effect.SlideDown('ajax_global_messages', { duration: 0.4, delay: 0.3 });
|
28 |
+
Effect.Appear('ajax_global_messages_close', { duration: 0.2, delay: 1 });
|
29 |
+
});
|
30 |
+
//]]>
|
31 |
+
</script>
|
32 |
+
<?php endif; ?>
|
app/etc/modules/Markshust_Ajaxglobalmessages.xml
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<!--
|
3 |
+
* @category Markshust
|
4 |
+
* @package Markshust_Ajaxglobalmessages
|
5 |
+
* @author Mark Shust <mark@shust.com>
|
6 |
+
* @license http://sam.zoy.org/wtfpl/
|
7 |
+
-->
|
8 |
+
<config>
|
9 |
+
<modules>
|
10 |
+
<Markshust_Ajaxglobalmessages>
|
11 |
+
<active>true</active>
|
12 |
+
<codePool>community</codePool>
|
13 |
+
</Markshust_Ajaxglobalmessages>
|
14 |
+
</modules>
|
15 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Markshust_Ajaxglobalmessages</name>
|
4 |
+
<version>1.0.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license uri="http://sam.zoy.org/wtfpl/">WTFPL</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>This extension makes the global messages appear as an ajax bar at the top of your website.</summary>
|
10 |
+
<description>This extension makes the global messages appear as an ajax bar at the top of your website. This allows for non-intrusive messaging that does not interfere with the design/wireframes of your Magento site.</description>
|
11 |
+
<notes>Initial release</notes>
|
12 |
+
<authors><author><name>Mark Shust</name><user>markoshust</user><email>mark@shust.com</email></author></authors>
|
13 |
+
<date>2012-05-17</date>
|
14 |
+
<time>14:50:25</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Markshust"><dir name="Ajaxglobalmessages"><dir name="etc"><file name="config.xml" hash="f066116c2fcec7f535a4f1ebf70dda58"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Markshust_Ajaxglobalmessages.xml" hash="82e113f1bae4f591dbbf88ea5acd13b6"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="markshust"><file name="ajaxglobalmessages.css" hash="2270516f2c2d6c4fcb4030281851d33a"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="markshust"><file name="ajaxglobalmessages.xml" hash="0d7d908ab74770a4a397def6a860f147"/></dir></dir><dir name="template"><dir name="markshust"><file name="ajaxglobalmessages.phtml" hash="1dbd9a111bf1c748ae93521e5fbf50bd"/></dir></dir></dir></dir></dir></target></contents>
|
16 |
+
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
+
</package>
|
skin/frontend/base/default/css/markshust/ajaxglobalmessages.css
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#ajax_global_messages {
|
2 |
+
position: relative;
|
3 |
+
z-index: 9999;
|
4 |
+
}
|
5 |
+
#ajax_global_messages_close {
|
6 |
+
position: absolute;
|
7 |
+
top: 13px;
|
8 |
+
right: 13px;
|
9 |
+
z-index: 10000;
|
10 |
+
display: block;
|
11 |
+
width: 15px;
|
12 |
+
height: 15px;
|
13 |
+
background: #666;
|
14 |
+
text-align: center;
|
15 |
+
color: #fff;
|
16 |
+
font-size: 15px;
|
17 |
+
line-height: 15px;
|
18 |
+
text-decoration: none;
|
19 |
+
-webkit-border-radius: 15px;
|
20 |
+
-moz-border-radius: 15px;
|
21 |
+
border-radius: 15px;
|
22 |
+
}
|
23 |
+
.messages li,
|
24 |
+
.messages li li {
|
25 |
+
margin: 0 !important;
|
26 |
+
}
|
27 |
+
.error-msg,
|
28 |
+
.success-msg,
|
29 |
+
.note-msg,
|
30 |
+
.notice-msg {
|
31 |
+
border: none !important;
|
32 |
+
font-size: 14px !important;
|
33 |
+
background-position: 13px 13px !important;
|
34 |
+
padding: 10px 35px !important;
|
35 |
+
min-height: 22px !important;
|
36 |
+
}
|
37 |
+
.note-msg,
|
38 |
+
.notice-msg {
|
39 |
+
color: #d6b501;
|
40 |
+
}
|