Magoch__QuickInform - Version 1.0.5

Version Notes

#Added possibility hide message during session.

Download this release

Release Info

Developer Igor Ocheretnyi
Extension Magoch__QuickInform
Version 1.0.5
Comparing to
See all releases


Code changes from version 1.0.4 to 1.0.5

app/design/frontend/base/default/layout/magoch/quickinform.xml ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magoch
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 this module to newer
19
+ * versions in the future.
20
+ *
21
+ * @category Content Management
22
+ * @package Magoch_QuickInform
23
+ * @copyright Copyright (c) 2010-2011 Magoch (http://www.magoch.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ * @author Igor Ocheretnyi <support@magoch.com>
26
+ */
27
+ -->
28
+ <layout version="0.1.0">
29
+ <default>
30
+ <reference name="content">
31
+ <block ifconfig="quickinform/default/enabled" type="quickinform/processing" before="-" name="magoch.quickinform" as="quickinform" template="magoch/quickinform/inform.phtml"/>
32
+ </reference>
33
+ </default>
34
+ </layout>
app/design/frontend/base/default/template/magoch/quickinform/inform.phtml ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magoch
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@magentocommerce.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 this module to newer
18
+ * versions in the future.
19
+ *
20
+ * @category Content Management
21
+ * @package Magoch_QuickInform
22
+ * @copyright Copyright (c) 2010-2011 Magoch (http://www.magoch.com)
23
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
24
+ * @author Igor Ocheretnyi <support@magoch.com>
25
+ */
26
+ ?>
27
+ <script type="text/javascript">
28
+ <!--
29
+ function hideDivBySess(divId) {
30
+ if(!document.getElementById(divId)) return;
31
+ var url = "<?php echo $this->getBaseUrl() . 'quickinform/processing/hidemsg' ?>";
32
+
33
+ document.body.style.cursor = "wait";
34
+ new Ajax.Request(url, {
35
+ method:'post',
36
+ parameters: {},
37
+ onCreate: function() {
38
+ //document.getElementById(divId).style.display="none";
39
+ },
40
+ onSuccess: function(transport) {
41
+ document.body.style.cursor = "auto";
42
+
43
+ //if( transport.readyState == 4){
44
+ if (transport.status == 200) {
45
+ //document.getElementById(divId).innerHTML=transport.responseText;
46
+ document.getElementById(divId).style.display="none";
47
+ }
48
+ //}
49
+ },
50
+ onFailure: function() {
51
+ alert('<?php echo $this->__('Connection Error try again later.') ?>');
52
+ }
53
+ });
54
+ return(false);
55
+ }
56
+ //-->
57
+ </script>
58
+
59
+ <?php $message = Mage::getStoreConfig('quickinform/default/message'); ?>
60
+ <?php $message = trim($message); ?>
61
+ <?php $len = Mage::helper('core/string')->strlen($message); ?>
62
+ <?php if($len > 0): ?>
63
+ <div id="quickinform-wrapper" class="quickinform-wrapper">
64
+ <div id="quickinform-body" class="quickinform-body">
65
+ <ul class="messages">
66
+ <li class="notice-msg">
67
+ <ul><li><?php echo $message; ?></li></ul>
68
+ <ul style="cursor: pointer;" onclick="hideDivBySess('quickinform-wrapper')"><li>[ <?php echo $this->__('hide') ?> ]</li></ul>
69
+ </li>
70
+ </ul>
71
+ </div>
72
+ </div>
73
+ <?php endif?>
package.xml CHANGED
@@ -1,39 +1,49 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Magoch__QuickInform</name>
4
- <version>1.0.4</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Extension gives you a possibility to add a message to all pages at once: inform your clients about any events. Client can read and hide message.</summary>
10
- <description>&lt;h2 class="prodname"&gt;Quick Inform&lt;/h2&gt;&#xD;
 
 
11
  &lt;p&gt;&#xD;
12
- &lt;span&gt;&lt;br&gt;Extension gives you a possibility to add a message to all pages at once.&lt;/span&gt;&#xD;
13
- &lt;span&gt;&lt;br&gt;This useful magento extension provides an ease of use for your web-shop.&lt;/span&gt;&#xD;
14
- &lt;span&gt;&lt;br&gt;Extension can be used&amp;nbsp; in case you plan to send a quick message on frontend.&lt;/span&gt;&#xD;
15
- &lt;span&gt;&lt;br&gt;Quick message example:&amp;nbsp;&amp;nbsp; &#xD;
16
- &lt;br&gt;"Dear clients! Today we have PROMO SALES. First&amp;nbsp; 10 orders from 3p.m. till 4p.m. can be made with 50% discount.Please use promotion code 'ggeee2222' to be the first.Enjoy!"&lt;/span&gt;&lt;/p&gt;&#xD;
17
- &lt;p&gt;&lt;strong&gt;&lt;span&gt;With the extension you are free to:&lt;/span&gt;&lt;/strong&gt;&#xD;
18
- &lt;br&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; * - Add message to all pages on frontend.&lt;/span&gt;&lt;/p&gt;&#xD;
19
- &lt;p&gt;&lt;strong&gt;&lt;span&gt;Also the extension:&lt;/span&gt;&lt;/strong&gt;&#xD;
20
- &lt;br&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; * - is easy to install (takes just a couple minutes)&lt;/span&gt;&#xD;
21
- &lt;br&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; * - is 100% open source&lt;/span&gt;&#xD;
22
- &lt;br&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; * - free upgrades&lt;/span&gt;&lt;/p&gt;&#xD;
23
- &lt;p&gt;&lt;strong&gt;&lt;span&gt;Release info:&lt;/span&gt;&lt;/strong&gt;&#xD;
24
- &lt;br&gt;&lt;span&gt;No files are replaced and no codding experience needed to install!&lt;/span&gt;&#xD;
25
- &lt;br&gt;&lt;span&gt;To install:&lt;/span&gt;&#xD;
26
- &lt;br&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; 1. Install extension using magento connect.&lt;/span&gt;&#xD;
27
- &lt;br&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; 2. Navigation to System &amp;gt; Configuration &amp;gt; .....General&amp;gt;Quick Inform ... and enable extension for any store you need.&lt;/span&gt;&#xD;
28
- &lt;br&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; 3. Log out from admin and login again.&lt;/span&gt;&#xD;
29
- &lt;br&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; 4. Enjoy after adding your message for quick inform.&lt;/span&gt;&lt;/p&gt;&#xD;
30
  &#xD;
31
- &lt;p&gt;Direct link: &lt;a href="http://magoch.com/explore/quick-inform.html"&gt;Quick Inform&lt;/a&gt;&lt;/p&gt;</description>
32
- <notes>#Added functionality to hide message during customer session</notes>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  <authors><author><name>Igor Ocheretnyi</name><user>magochdotcom</user><email>magento@magoch.com</email></author></authors>
34
- <date>2011-11-29</date>
35
- <time>10:11:05</time>
36
- <contents><target name="magecommunity"><dir><dir name="Magoch"><dir><dir name="QuickInform"><dir name="Block"><file name="Processing.php" hash="877e2046caf54dd0ade57ea53f65f5a3"/></dir><dir name="Helper"><file name="Data.php" hash="952479c98fd172902f5935bcaee4dec4"/></dir><dir name="Model"><dir name="Mysql4"><file name="Setup.php" hash="791dd62cd90cc4809d07cf397f5b0c05"/></dir><file name="Observer.php" hash="ee7ec3c04cafd306b84eb10b6a54d9dc"/></dir><dir name="controllers"><file name="ProcessingController.php" hash="aca680260180d753935d330cd90e9819"/></dir><dir name="etc"><file name="config.xml" hash="c651897d860fac1d8463accfc4e940f4"/><file name="system.xml" hash="20a5d079eff1f32a0896550eb530f09b"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magoch_QuickInform.xml" hash="d6fc19783815345ab338b2216e435119"/></dir></target><target name="magedesign"><dir name="magoch"><file name="quickinform.xml" hash=""/><dir name="quickinform"><file name="inform.phtml" hash=""/></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Magoch_QuickInform.csv" hash="9f800b70c883f0261e53543849acf33e"/></dir></target></contents>
37
  <compatible/>
38
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
39
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Magoch__QuickInform</name>
4
+ <version>1.0.5</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>&lt;p&gt;Extension gives you a possibility to add a message to all pages at once.&lt;/p&gt;&#xD;
10
+ &lt;p&gt;Extension can be used in case you plan to send a quick message.&lt;/p&gt;</summary>
11
+ <description>&lt;p&gt;&lt;!-- --&gt;&lt;/p&gt;&#xD;
12
+ &lt;p&gt;&lt;strong&gt;Quick message example:&lt;/strong&gt;&lt;/p&gt;&#xD;
13
  &lt;p&gt;&#xD;
14
+ "Dear clients! Today we have PROMO SALES. &#xD;
15
+ &lt;div&gt;From 3p.m. till 4p.m. first 10 orders can be made with 50% discount.&lt;/div&gt;&#xD;
16
+ &lt;div&gt;Please use promotion code 'MAGENTO_2012' to be the first. Enjoy!"&lt;/div&gt;&#xD;
17
+ &lt;/p&gt;&#xD;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  &#xD;
19
+ &lt;p&gt;&lt;!-- --&gt;&lt;/p&gt;&#xD;
20
+ &lt;p&gt;&lt;strong&gt;&lt;span&gt;With the extension you are free to:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
21
+ &lt;p&gt;* - Add message to all pages on frontend.&lt;/p&gt;&#xD;
22
+ &#xD;
23
+ &lt;p&gt;&lt;!-- --&gt;&lt;/p&gt;&#xD;
24
+ &lt;p&gt;&lt;strong&gt;Also the extension:&lt;/strong&gt;&lt;/p&gt;&#xD;
25
+ &lt;p&gt;&#x2022; is easy to install (takes just a couple minutes)&lt;/p&gt;&#xD;
26
+ &lt;p&gt;&#x2022; is 100% open source&lt;/p&gt;&#xD;
27
+ &lt;p&gt;&#x2022; free upgrades&lt;/p&gt;&#xD;
28
+ &#xD;
29
+ &lt;p&gt;&lt;!-- --&gt;&lt;/p&gt;&#xD;
30
+ &lt;p&gt;&lt;strong&gt;To install:&lt;/strong&gt;&lt;/p&gt;&#xD;
31
+ &lt;ul&gt;&#xD;
32
+ &lt;li&gt;1. Install extension using magento connect.&lt;/li&gt;&#xD;
33
+ &lt;li&gt;2. Log out from admin and login again.&lt;/li&gt;&#xD;
34
+ &lt;li&gt;3. Navigation to System -&gt; Configuration -&gt; left tab Magoch.com-&gt;Quick Inform ... and enable extension for any store you need.&lt;/li&gt;&#xD;
35
+ &lt;li&gt;4. Enjoy after adding your message for quick inform.&lt;/li&gt;&#xD;
36
+ &lt;/ul&gt;&#xD;
37
+ &#xD;
38
+ &lt;p&gt;&lt;!-- --&gt;&lt;/p&gt;&#xD;
39
+ &lt;p&gt;&lt;strong&gt;&lt;a target="_blank" href="http://www.magoch.com/"&gt;Visit www.magoch.com for more info.&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
40
+ &#xD;
41
+ </description>
42
+ <notes>#Added possibility hide message during session.</notes>
43
  <authors><author><name>Igor Ocheretnyi</name><user>magochdotcom</user><email>magento@magoch.com</email></author></authors>
44
+ <date>2011-12-02</date>
45
+ <time>11:54:09</time>
46
+ <contents><target name="magecommunity"><dir><dir name="Magoch"><dir><dir name="QuickInform"><dir name="Block"><file name="Processing.php" hash="877e2046caf54dd0ade57ea53f65f5a3"/></dir><dir name="Helper"><file name="Data.php" hash="952479c98fd172902f5935bcaee4dec4"/></dir><dir name="Model"><dir name="Mysql4"><file name="Setup.php" hash="791dd62cd90cc4809d07cf397f5b0c05"/></dir><file name="Observer.php" hash="ee7ec3c04cafd306b84eb10b6a54d9dc"/></dir><dir name="controllers"><file name="ProcessingController.php" hash="aca680260180d753935d330cd90e9819"/></dir><dir name="etc"><file name="config.xml" hash="c651897d860fac1d8463accfc4e940f4"/><file name="system.xml" hash="20a5d079eff1f32a0896550eb530f09b"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magoch_QuickInform.xml" hash="d6fc19783815345ab338b2216e435119"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Magoch_QuickInform.csv" hash="9f800b70c883f0261e53543849acf33e"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="magoch"><file name="quickinform.xml" hash="1ade1421515429f9bd04d69b190a52a0"/></dir></dir><dir name="template"><dir name="magoch"><dir name="quickinform"><file name="inform.phtml" hash="3522d25fc751ebc4f6a95ee8ea77296b"/></dir></dir></dir></dir></dir></dir></target></contents>
47
  <compatible/>
48
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
49
  </package>