ie6redirectmsg - Version 1.0.1

Version Notes

IE6 Redirection Module

Download this release

Release Info

Developer Mahesh Komarraju
Extension ie6redirectmsg
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

app/code/local/Evobilis/IE6Redirect/Block/IE6Redirect.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?
2
+
3
+ class Evobilis_IE6Redirect_Block_IE6Redirect extends Mage_Core_Block_Template
4
+ {
5
+ // necessary methods
6
+ }
7
+
8
+ class Custom_Invite_Block_Abcd extends Mage_Core_Block_Template
9
+ {
10
+ // necessary methods
11
+ }
12
+ ?>
app/code/local/Evobilis/IE6Redirect/Block/Invite.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?
2
+
3
+ class Evobilis_IE6Redirect_Block_Invite extends Mage_Core_Block_Template
4
+ {
5
+ // necessary methods
6
+ }
7
+
8
+ class Evobilis_IE6Redirect_Block_Abcd extends Mage_Core_Block_Template
9
+ {
10
+ // necessary methods
11
+ }
12
+ ?>
app/code/local/Evobilis/IE6Redirect/Model/IE6Redirect.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?
2
+ class Evobilis_IE6Redirect_Model_IE6Redirect extends Mage_Media_Model_Image
3
+ {
4
+ function _construct()
5
+ {
6
+ // $this->_init('user_profile/profile');
7
+ }
8
+
9
+ }
10
+ ?>
app/code/local/Evobilis/IE6Redirect/controllers/IndexController.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?
2
+ class Evobilis_IE6Redirect_IndexController extends Mage_Core_Controller_Front_Action
3
+ {
4
+ public function indexAction()
5
+ {
6
+
7
+ $this->loadLayout(array('default'));
8
+ $this->getLayout()->getBlock('head')->setTitle($this->__('You are using IE6. Please upgrade your browser.'));
9
+ $this->renderLayout();
10
+ }
11
+
12
+
13
+ }
14
+ ?>
app/code/local/Evobilis/IE6Redirect/etc/config.xml ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <global>
4
+ <modules>
5
+ <evobilis_ie6redirect>
6
+ <version>0.1.0</version>
7
+ </evobilis_ie6redirect>
8
+ </modules>
9
+
10
+
11
+
12
+ <blocks>
13
+ <ie6redirect>
14
+ <rewrite>
15
+ <ie6redirect>Evobilis_IE6Redirect_Block_IE6Redirect</ie6redirect>
16
+ </rewrite>
17
+ </ie6redirect>
18
+ </blocks>
19
+
20
+ <models>
21
+ <mie6redirect>
22
+ <class>Evobilis_IE6Redirect_Model</class>
23
+ </mie6redirect>
24
+ </models>
25
+
26
+ </global>
27
+ <frontend>
28
+ <translate>
29
+ <modules>
30
+ <Evobilis_IE6Redirect>
31
+ <files>
32
+ <default>Evobilis_IE6Redirect.csv</default>
33
+ </files>
34
+ </Evobilis_IE6Redirect>
35
+ </modules>
36
+ </translate>
37
+
38
+ <routers>
39
+ <ie6redirect>
40
+ <use>standard</use>
41
+ <args>
42
+ <module>Evobilis_IE6Redirect</module>
43
+ <frontName>ie6redirect</frontName>
44
+ </args>
45
+ </ie6redirect>
46
+
47
+ </routers>
48
+ <layout>
49
+ <updates>
50
+ <ie6redirect>
51
+ <file>ie6redirect.xml</file>
52
+ </ie6redirect>
53
+ </updates>
54
+ </layout>
55
+ </frontend>
56
+ </config>
app/design/frontend/base/default/layout/ie6redirect.xml ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+
3
+ <layout version="0.1.0">
4
+
5
+ <ie6redirect_index_index>
6
+
7
+ <reference name="root">
8
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
9
+
10
+
11
+ </reference>
12
+
13
+ <!-- <reference name="head">
14
+ <action method="addItem">
15
+ <type>js</type><script>jquery-1.7.1.min.js</script>
16
+ </action>
17
+ </reference>-->
18
+
19
+
20
+ <reference name="content">
21
+ <block type="ie6redirect/ie6redirect" name="hello" template="ie6redirect/index.phtml"/>
22
+ </reference>
23
+ </ie6redirect_index_index>
24
+
25
+
26
+ <default>
27
+ <reference name="head">
28
+ <block type="ie6redirect/ie6redirect" name="ie6redirect.script" template="ie6redirect/script.phtml"/>
29
+
30
+ </reference>
31
+ </default>
32
+
33
+
34
+
35
+ </layout>
app/design/frontend/base/default/template/ie6redirect/index.phtml ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <div style="margin:auto; padding-top:20px;">
2
+ <div style="margin:auto; text-align:center;">
3
+ OOPS! Your browser doesnt support our website!<BR />
4
+ <a href="http://windows.microsoft.com/en-in/ie9">Please click here to upgrade your browser</a>
5
+ </div>
app/design/frontend/base/default/template/ie6redirect/script.phtml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?
2
+ $module=Mage::app()->getRequest()->getModuleName();
3
+ if($module!='ie6redirect'):
4
+ ?>
5
+ <!--[if IE 6]>
6
+ <script>
7
+ window.location='<?=Mage::getBaseUrl();?>ie6redirect/';
8
+ </script>
9
+ <![endif]-->
10
+ <? endif; ?>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ie6redirectmsg</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.evobilis.com">Evobilis</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>IE6 Redirection Module</description>
11
  <notes>IE6 Redirection Module</notes>
12
  <authors><author><name>Mahesh Komarraju</name><user>Mahesh</user><email>mahesh.komarraju@evobilis.com</email></author><author><name>Cyrus</name><user>aumanwai</user><email>cyrus.au@evobilis.com</email></author></authors>
13
- <date>2013-02-28</date>
14
- <time>04:15:09</time>
15
- <contents><target name="mageetc"><dir name="modules"><file name="Evobilis_IE6Redirect.xml" hash="de98dd0d9d3fd27071335aeeef77d612"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="ie6redirect.xml" hash=""/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.0.0</min><max>5.4.6</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ie6redirectmsg</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.evobilis.com">Evobilis</license>
7
  <channel>community</channel>
10
  <description>IE6 Redirection Module</description>
11
  <notes>IE6 Redirection Module</notes>
12
  <authors><author><name>Mahesh Komarraju</name><user>Mahesh</user><email>mahesh.komarraju@evobilis.com</email></author><author><name>Cyrus</name><user>aumanwai</user><email>cyrus.au@evobilis.com</email></author></authors>
13
+ <date>2013-03-03</date>
14
+ <time>09:37:52</time>
15
+ <contents><target name="magelocal"><dir name="Evobilis"><dir name="IE6Redirect"><dir name="Block"><file name="IE6Redirect.php" hash="4bbcbb75c261379c16395ddf15d39d2b"/><file name="Invite.php" hash="4f059761604943c94f60215a070404a6"/></dir><dir name="Model"><file name="IE6Redirect.php" hash="c782774026037fc8f04d4a057f6de4cf"/></dir><dir name="controllers"><file name="IndexController.php" hash="94ac486c651fa99b9aa62c67e9f494b5"/></dir><dir name="etc"><file name="config.xml" hash="bb85fe89e5d6950da3e30730c113aaeb"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Evobilis_IE6Redirect.xml" hash="de98dd0d9d3fd27071335aeeef77d612"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="ie6redirect.xml" hash="0342432f556e8c386c0dca4da4ac8dd9"/></dir><dir name="template"><dir name="ie6redirect"><file name="index.phtml" hash="c949111ae4c12ec61dfb40ef9ae760dd"/><file name="script.phtml" hash="93e744dfa7542fb98c6b087a2386c42b"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.0.0</min><max>5.4.6</max></php></required></dependencies>
18
  </package>