Version Notes
-
Download this release
Release Info
Developer | Magento Core Team |
Extension | Kr_Stop_IE6 |
Version | 0.1.5 |
Comparing to | |
See all releases |
Version 0.1.5
- app/code/community/Kr/All/Model/Feed.php +109 -0
- app/code/community/Kr/All/Model/Observer.php +19 -0
- app/code/community/Kr/All/etc/config.xml +37 -0
- app/code/community/Kr/Stopie6/Block/Popup.php +22 -0
- app/code/community/Kr/Stopie6/Helper/Data.php +12 -0
- app/code/community/Kr/Stopie6/etc/config.xml +65 -0
- app/code/community/Kr/Stopie6/etc/system.xml +44 -0
- app/design/frontend/default/default/layout/krstopie6.xml +14 -0
- app/design/frontend/default/default/template/kr/stopie6/popup.phtml +32 -0
- app/etc/modules/Kr_All.xml +9 -0
- app/etc/modules/Kr_Stopie6.xml +9 -0
- app/locale/de_DE/kr_stopie6.csv +3 -0
- app/locale/fr_FR/kr_stopie6.csv +3 -0
- app/locale/it_IT/kr_stopie6.csv +3 -0
- app/locale/pt_PT/kr_stopie6.csv +3 -0
- package.xml +22 -0
- skin/frontend/default/default/css/kr/stopie6.css +9 -0
- skin/frontend/default/default/images/kr/stopie6/chrome.jpg +0 -0
- skin/frontend/default/default/images/kr/stopie6/cornerx.jpg +0 -0
- skin/frontend/default/default/images/kr/stopie6/firefox.jpg +0 -0
- skin/frontend/default/default/images/kr/stopie6/ie8.jpg +0 -0
- skin/frontend/default/default/images/kr/stopie6/safari.jpg +0 -0
- skin/frontend/default/default/images/kr/stopie6/warning.jpg +0 -0
- skin/frontend/default/default/js/kr/stopie6.js +25 -0
app/code/community/Kr/All/Model/Feed.php
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Kangourouge - Magento Market (http://www.magentomarket.fr)
|
4 |
+
*
|
5 |
+
* @category Kr
|
6 |
+
* @package Kr_All
|
7 |
+
* @copyright Copyright (c) 2004-2011 Kangourouge. (http://www.kangourouge.com)
|
8 |
+
* @license OSL
|
9 |
+
*/
|
10 |
+
Class Kr_All_Model_Feed extends Mage_AdminNotification_Model_Feed {
|
11 |
+
|
12 |
+
const XML_KR_FEED_URL_PATH = 'system/kr_all/kr_feed_url';
|
13 |
+
|
14 |
+
protected $_KrFeedUrl;
|
15 |
+
|
16 |
+
public function checkUpdate()
|
17 |
+
{
|
18 |
+
if (($this->getFrequency() + $this->getLastUpdate()) > time()) {
|
19 |
+
return $this;
|
20 |
+
}
|
21 |
+
|
22 |
+
$feedData = array();
|
23 |
+
|
24 |
+
$feedXml = $this->getFeedData();
|
25 |
+
|
26 |
+
if ($feedXml && $feedXml->channel && $feedXml->channel->item) {
|
27 |
+
foreach ($feedXml->channel->item as $item) {
|
28 |
+
$feedData[] = array(
|
29 |
+
'severity' => (int)$item->severity,
|
30 |
+
'date_added' => $this->getDate((string)$item->pubDate),
|
31 |
+
'title' => (string)$item->title,
|
32 |
+
'description' => (string)$item->description,
|
33 |
+
'url' => (string)$item->link,
|
34 |
+
);
|
35 |
+
}
|
36 |
+
|
37 |
+
if ($feedData) {
|
38 |
+
Mage::getModel('adminnotification/inbox')->parse(array_reverse($feedData));
|
39 |
+
}
|
40 |
+
}
|
41 |
+
$this->setLastUpdate();
|
42 |
+
|
43 |
+
return $this;
|
44 |
+
}
|
45 |
+
|
46 |
+
|
47 |
+
/**
|
48 |
+
* Retrieve Last update time
|
49 |
+
*
|
50 |
+
* @return int
|
51 |
+
*/
|
52 |
+
public function getLastUpdate()
|
53 |
+
{
|
54 |
+
return Mage::app()->loadCache('kr_notifications_lastcheck');
|
55 |
+
}
|
56 |
+
|
57 |
+
/**
|
58 |
+
* Set last update time (now)
|
59 |
+
*
|
60 |
+
* @return Mage_AdminNotification_Model_Feed
|
61 |
+
*/
|
62 |
+
public function setLastUpdate()
|
63 |
+
{
|
64 |
+
Mage::app()->saveCache(time(), 'kr_notifications_lastcheck');
|
65 |
+
return $this;
|
66 |
+
}
|
67 |
+
|
68 |
+
|
69 |
+
|
70 |
+
public function getFeedUrl()
|
71 |
+
{
|
72 |
+
if (is_null($this->_KrFeedUrl)) {
|
73 |
+
$this->_KrFeedUrl = (Mage::getStoreConfigFlag(self::XML_USE_HTTPS_PATH) ? 'https://' : 'http://')
|
74 |
+
. Mage::getStoreConfig(self::XML_KR_FEED_URL_PATH);
|
75 |
+
}
|
76 |
+
return $this->_KrFeedUrl;
|
77 |
+
}
|
78 |
+
|
79 |
+
|
80 |
+
public function getFeedData()
|
81 |
+
{
|
82 |
+
$curl = new Varien_Http_Adapter_Curl();
|
83 |
+
$curl->setConfig(array(
|
84 |
+
'timeout' => 3
|
85 |
+
));
|
86 |
+
|
87 |
+
$curl->write(Zend_Http_Client::GET, $this->getFeedUrl(), '1.0');
|
88 |
+
$data = $curl->read();
|
89 |
+
if ($data === false) {
|
90 |
+
return false;
|
91 |
+
}
|
92 |
+
$data = preg_split('/^\r?$/m', $data, 2);
|
93 |
+
$data = trim($data[1]);
|
94 |
+
$curl->close();
|
95 |
+
|
96 |
+
try {
|
97 |
+
$xml = new SimpleXMLElement($data);
|
98 |
+
}
|
99 |
+
catch (Exception $e) {
|
100 |
+
return false;
|
101 |
+
}
|
102 |
+
|
103 |
+
return $xml;
|
104 |
+
}
|
105 |
+
|
106 |
+
}
|
107 |
+
|
108 |
+
|
109 |
+
?>
|
app/code/community/Kr/All/Model/Observer.php
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Kangourouge - Magento Market (http://www.magentomarket.fr)
|
4 |
+
*
|
5 |
+
* @category Kr
|
6 |
+
* @package Kr_All
|
7 |
+
* @copyright Copyright (c) 2004-2011 Kangourouge. (http://www.kangourouge.com)
|
8 |
+
* @license OSL
|
9 |
+
*/
|
10 |
+
class Kr_All_Model_Observer
|
11 |
+
{
|
12 |
+
public function preDispatch(Varien_Event_Observer $observer)
|
13 |
+
{
|
14 |
+
if (Mage::getSingleton('admin/session')->isLoggedIn()) {
|
15 |
+
$feedModel = Mage::getModel('kr_all/feed');
|
16 |
+
$feedModel->checkUpdate();
|
17 |
+
}
|
18 |
+
}
|
19 |
+
}
|
app/code/community/Kr/All/etc/config.xml
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Kr_All>
|
5 |
+
<version>1.0.0</version>
|
6 |
+
</Kr_All>
|
7 |
+
</modules>
|
8 |
+
|
9 |
+
<global>
|
10 |
+
<models>
|
11 |
+
<kr_all>
|
12 |
+
<class>Kr_All_Model</class>
|
13 |
+
</kr_all>
|
14 |
+
</models>
|
15 |
+
</global>
|
16 |
+
|
17 |
+
<adminhtml>
|
18 |
+
<events>
|
19 |
+
<controller_action_predispatch>
|
20 |
+
<observers>
|
21 |
+
<kr_all>
|
22 |
+
<class>kr_all/observer</class>
|
23 |
+
<method>preDispatch</method>
|
24 |
+
</kr_all>
|
25 |
+
</observers>
|
26 |
+
</controller_action_predispatch>
|
27 |
+
</events>
|
28 |
+
</adminhtml>
|
29 |
+
|
30 |
+
<default>
|
31 |
+
<system>
|
32 |
+
<kr_all>
|
33 |
+
<kr_feed_url>support.magentomarket.fr/notifications.rss</kr_feed_url>
|
34 |
+
</kr_all>
|
35 |
+
</system>
|
36 |
+
</default>
|
37 |
+
</config>
|
app/code/community/Kr/Stopie6/Block/Popup.php
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Kangourouge - Magento Market (http://www.magentomarket.fr)
|
4 |
+
*
|
5 |
+
* @category Kr
|
6 |
+
* @package Kr_Stopie6
|
7 |
+
* @copyright Copyright (c) 2004-2011 Kangourouge. (http://www.kangourouge.com)
|
8 |
+
* @license OSL
|
9 |
+
*/
|
10 |
+
class Kr_Stopie6_Block_Popup extends Mage_Core_Block_Template
|
11 |
+
{
|
12 |
+
public function __construct()
|
13 |
+
{
|
14 |
+
parent::__construct();
|
15 |
+
$this->setTemplate('kr/stopie6/popup.phtml');
|
16 |
+
}
|
17 |
+
|
18 |
+
public function isDebug()
|
19 |
+
{
|
20 |
+
return Mage::getStoreConfig("krstopie6/conf/debug");
|
21 |
+
}
|
22 |
+
}
|
app/code/community/Kr/Stopie6/Helper/Data.php
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Kangourouge - Magento Market (http://www.magentomarket.fr)
|
4 |
+
*
|
5 |
+
* @category Kr
|
6 |
+
* @package Kr_Stopie6
|
7 |
+
* @copyright Copyright (c) 2004-2011 Kangourouge. (http://www.kangourouge.com)
|
8 |
+
* @license OSL
|
9 |
+
*/
|
10 |
+
class Kr_Stopie6_Helper_Data extends Mage_Core_Helper_Abstract {
|
11 |
+
|
12 |
+
}
|
app/code/community/Kr/Stopie6/etc/config.xml
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<config>
|
3 |
+
|
4 |
+
<modules>
|
5 |
+
<Kr_Stopie6>
|
6 |
+
<version>0.1.5</version>
|
7 |
+
</Kr_Stopie6>
|
8 |
+
</modules>
|
9 |
+
|
10 |
+
<global>
|
11 |
+
<blocks>
|
12 |
+
<krstopie6>
|
13 |
+
<class>Kr_Stopie6_Block</class>
|
14 |
+
</krstopie6>
|
15 |
+
</blocks>
|
16 |
+
<helpers>
|
17 |
+
<krstopie6>
|
18 |
+
<class>Kr_Stopie6_Helper</class>
|
19 |
+
</krstopie6>
|
20 |
+
</helpers>
|
21 |
+
</global>
|
22 |
+
|
23 |
+
<frontend>
|
24 |
+
<layout>
|
25 |
+
<updates>
|
26 |
+
<krstopie6>
|
27 |
+
<file>krstopie6.xml</file>
|
28 |
+
</krstopie6>
|
29 |
+
</updates>
|
30 |
+
</layout>
|
31 |
+
<translate>
|
32 |
+
<modules>
|
33 |
+
<Kr_Stopie6>
|
34 |
+
<files>
|
35 |
+
<default>kr_stopie6.csv</default>
|
36 |
+
</files>
|
37 |
+
</Kr_Stopie6>
|
38 |
+
</modules>
|
39 |
+
</translate>
|
40 |
+
</frontend>
|
41 |
+
|
42 |
+
<adminhtml>
|
43 |
+
<acl>
|
44 |
+
<resources>
|
45 |
+
<admin>
|
46 |
+
<children>
|
47 |
+
<system>
|
48 |
+
<children>
|
49 |
+
<config>
|
50 |
+
<children>
|
51 |
+
<krstopie6 translate="title" module="krstopie6">
|
52 |
+
<title>KANGOUROUGE - stop ie6</title>
|
53 |
+
<sort_order>50</sort_order>
|
54 |
+
</krstopie6>
|
55 |
+
</children>
|
56 |
+
</config>
|
57 |
+
</children>
|
58 |
+
</system>
|
59 |
+
</children>
|
60 |
+
</admin>
|
61 |
+
</resources>
|
62 |
+
</acl>
|
63 |
+
</adminhtml>
|
64 |
+
|
65 |
+
</config>
|
app/code/community/Kr/Stopie6/etc/system.xml
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8" ?>
|
2 |
+
<config>
|
3 |
+
<tabs>
|
4 |
+
<magentomarket translate="label" module="krstopie6">
|
5 |
+
<label>Magento Market</label>
|
6 |
+
<sort_order>501</sort_order>
|
7 |
+
</magentomarket>
|
8 |
+
</tabs>
|
9 |
+
|
10 |
+
<sections>
|
11 |
+
<krstopie6>
|
12 |
+
<label>Stop IE6 </label>
|
13 |
+
<tab>magentomarket</tab>
|
14 |
+
<frontend_type>text</frontend_type>
|
15 |
+
<sort_order>10</sort_order>
|
16 |
+
<show_in_default>1</show_in_default>
|
17 |
+
<show_in_website>1</show_in_website>
|
18 |
+
<show_in_store>1</show_in_store>
|
19 |
+
|
20 |
+
<groups>
|
21 |
+
<conf translate="label">
|
22 |
+
<label>Configuration</label>
|
23 |
+
<frontend_type>text</frontend_type>
|
24 |
+
<sort_order>10</sort_order>
|
25 |
+
<show_in_default>1</show_in_default>
|
26 |
+
<show_in_website>1</show_in_website>
|
27 |
+
<show_in_store>1</show_in_store>
|
28 |
+
<fields>
|
29 |
+
<debug translate="label" module="core">
|
30 |
+
<label>Debug</label>
|
31 |
+
<sort_order>1</sort_order>
|
32 |
+
<frontend_type>select</frontend_type>
|
33 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
34 |
+
<show_in_default>1</show_in_default>
|
35 |
+
<show_in_website>1</show_in_website>
|
36 |
+
<show_in_store>1</show_in_store>
|
37 |
+
</debug>
|
38 |
+
</fields>
|
39 |
+
</conf>
|
40 |
+
</groups>
|
41 |
+
|
42 |
+
</krstopie6>
|
43 |
+
</sections>
|
44 |
+
</config>
|
app/design/frontend/default/default/layout/krstopie6.xml
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout>
|
3 |
+
<default>
|
4 |
+
<reference name="head">
|
5 |
+
<action method="addItem"><type>skin_js</type><name>js/kr/stopie6.js</name><params/><if>lt IE 7</if></action>
|
6 |
+
<action method="addItem"><type>skin_css</type><name>css/kr/stopie6.css</name><params/><if>lt IE 7</if></action>
|
7 |
+
<action method="addCss" ifconfig="krstopie6/conf/debug"><stylesheet>css/kr/stopie6.css</stylesheet></action>
|
8 |
+
<action method="addItem" ifconfig="krstopie6/conf/debug"><type>skin_js</type><name>js/kr/stopie6.js</name></action>
|
9 |
+
</reference>
|
10 |
+
<reference name="before_body_end">
|
11 |
+
<block type="krstopie6/popup" name="kr_stopie6" after="-"/>
|
12 |
+
</reference>
|
13 |
+
</default>
|
14 |
+
</layout>
|
app/design/frontend/default/default/template/kr/stopie6/popup.phtml
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php if(!$this->isDebug()):?><!--[if lt IE 7]><?php endif; ?>
|
2 |
+
<div class="kroverlay" id="kroverlay" style="display:none;"></div>
|
3 |
+
<div class="krstopie6" id="krstopie6" style="display:none;">
|
4 |
+
<div style='position: absolute; right: 3px; top: 3px; font-family: courier new; font-weight: bold;'>
|
5 |
+
<a href='#' onclick='KrHideStopie6(); return false;'>
|
6 |
+
<img src='<?php echo $this->getSkinUrl('images/kr/stopie6/cornerx.jpg');?>' style='border: none;' alt='<?php echo $this->__('Close this notice');?>' title='<?php echo $this->__('Close this notice');?>'/>
|
7 |
+
</a>
|
8 |
+
</div>
|
9 |
+
<div class="krinfo">
|
10 |
+
<div class="warning">
|
11 |
+
<img src='<?php echo $this->getSkinUrl('images/kr/stopie6/warning.jpg');?>' alt='Warning!'/>
|
12 |
+
</div>
|
13 |
+
<div class="txt">
|
14 |
+
<p>
|
15 |
+
<strong><?php echo $this->__('You are using an outdated browser');?></strong>
|
16 |
+
</p>
|
17 |
+
<p>
|
18 |
+
<?php echo $this->__('For a better experience using this site, please upgrade to a modern web browser.');?>
|
19 |
+
</p>
|
20 |
+
</div>
|
21 |
+
</div>
|
22 |
+
<div class="browsers">
|
23 |
+
<a href='http://fr.www.mozilla.com/fr/' target='_blank'><img src='<?php echo $this->getSkinUrl('images/kr/stopie6/firefox.jpg');?>' alt='Firefox'/></a>
|
24 |
+
<a href='http://www.microsoft.com/downloads/details.aspx?FamilyID=341c2ad5-8c3d-4347-8c03-08cdecd8852b&DisplayLang=fr' target='_blank'><img src='<?php echo $this->getSkinUrl('images/kr/stopie6/ie8.jpg');?>' alt='Ie 8'/></a>
|
25 |
+
<a href='http://www.apple.com/fr/safari/download/' target='_blank'><img src='<?php echo $this->getSkinUrl('images/kr/stopie6/safari.jpg');?>' alt='Safari'/></a>
|
26 |
+
<a href='http://www.google.com/chrome?hl=fr' target='_blank'><img src='<?php echo $this->getSkinUrl('images/kr/stopie6/chrome.jpg');?>' alt='Chrome'/></a>
|
27 |
+
</div>
|
28 |
+
<script type="text/javascript">
|
29 |
+
KrShowStopie6();
|
30 |
+
</script>
|
31 |
+
</div>
|
32 |
+
<?php if(!$this->isDebug()):?><![endif]--><?php endif; ?>
|
app/etc/modules/Kr_All.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Kr_All>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</Kr_All>
|
8 |
+
</modules>
|
9 |
+
</config>
|
app/etc/modules/Kr_Stopie6.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Kr_Stopie6>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</Kr_Stopie6>
|
8 |
+
</modules>
|
9 |
+
</config>
|
app/locale/de_DE/kr_stopie6.csv
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
"You are using an outdated browser","Sie benutzen einen veralteten Browser"
|
2 |
+
"For a better experience using this site, please upgrade to a modern web browser.","Für ein besseres Interneterlebnis auf unserer Webseite sollten Sie einen modernen Web Browser nutzen."
|
3 |
+
"Close this notice","Schliessen Sie diese Meldung"
|
app/locale/fr_FR/kr_stopie6.csv
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
"You are using an outdated browser","Vous utilisez un navigateur dépassé depuis près de 8 ans!"
|
2 |
+
"For a better experience using this site, please upgrade to a modern web browser.","Pour une meilleure expérience web, prenez le temps de mettre votre navigateur à jour. "
|
3 |
+
"Close this notice","Fermer la fenêtre"
|
app/locale/it_IT/kr_stopie6.csv
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
"You are using an outdated browser","Lei utilizza un browser web superato"
|
2 |
+
"For a better experience using this site, please upgrade to a modern web browser.","Per avere una esperienza migliore sul nostro sito web Lei dovrebbe utilizzare un browser web moderno."
|
3 |
+
"Close this notice","Chiusa questa notizia"
|
app/locale/pt_PT/kr_stopie6.csv
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
"You are using an outdated browser","Você está utilizando um navegador desatualizado"
|
2 |
+
"For a better experience using this site, please upgrade to a modern web browser.","Para melhor visualização desse site, por favor instale ou atualize o seu navegador para um moderno."
|
3 |
+
"Close this notice","Fechar este anúncio"
|
package.xml
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Kr_Stop_IE6</name>
|
4 |
+
<version>0.1.5</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>Invite your visitors using Internet Explorer 6 to upgrade their browser with a newer (Firefox, IE8, Safari, Chrome)</summary>
|
10 |
+
<description>Microsoft Internet Explorer 6 was released in 2001.
|
11 |
+
Almost 10 years later, a significant proportion of the web population still uses Internet Explorer 6.
|
12 |
+
IE 6 is not compatible with the new standard and work with IE6 is one of the hardest tasks for any web developer.
|
13 |
+

|
14 |
+
In order to expedite the updating of users to a newer browser, we offer this extension Magento that displays only for IE6 users an invitation to update their browser with a choice: Firefox IE8, Safari, Chrome. (Based on IE6 No More: http://www.ie6nomore.com/)</description>
|
15 |
+
<notes>-</notes>
|
16 |
+
<authors><author><name>Jonathan Martin</name><user>auto-converted</user><email>jmartin@magentomarket.fr</email></author></authors>
|
17 |
+
<date>2011-04-22</date>
|
18 |
+
<time>19:08:26</time>
|
19 |
+
<contents><target name="magecommunity"><dir name="Kr"><dir name="All"><dir name="Model"><file name="Feed.php" hash="8c8711eb4e6788bac497460018b23e7f"/><file name="Observer.php" hash="785e6880ef9938c8271d0fceadd996a1"/></dir><dir name="etc"><file name="config.xml" hash="f81995faac832c646a2f0a28142d29e6"/></dir></dir><dir name="Stopie6"><dir name="Block"><file name="Popup.php" hash="23a572af17c5da9f39690bd4e12e9ee5"/></dir><dir name="Helper"><file name="Data.php" hash="ea280c8b6255386abf08075a2f5bddfe"/></dir><dir name="etc"><file name="config.xml" hash="ec84b809112c2bb4e80639073dd62dc3"/><file name="system.xml" hash="823d3a7fc73a8764154c1252660c491f"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Kr_All.xml" hash="f33054c7f9cb683d84b4d0d8e658133f"/><file name="Kr_Stopie6.xml" hash="059233f678027b0268c71707708634ef"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="kr"><dir name="stopie6"><file name="popup.phtml" hash="8bc105a78544705582032ea438e410aa"/></dir></dir></dir><dir name="layout"><file name="krstopie6.xml" hash="e306e86f115f59d28234a558861be3d2"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="js"><dir name="kr"><file name="stopie6.js" hash="bd2e6947ab65dafd96406b70f67d3d03"/></dir></dir><dir name="css"><dir name="kr"><file name="stopie6.css" hash="f0e49bd060c82df0c9a0ebb930709b3a"/></dir></dir><dir name="images"><dir name="kr"><dir name="stopie6"><file name="chrome.jpg" hash="14eb4a97dc417ac65b3ca1c2a9f813ce"/><file name="cornerx.jpg" hash="77f2586da6a374112cfe83e150519bbb"/><file name="firefox.jpg" hash="a3b78028836a1d67ffe19e45f5e88d23"/><file name="ie8.jpg" hash="ab2976b26e4b58a5745651351d87066a"/><file name="safari.jpg" hash="1d70dd09c48898e6fdad036cc9514b65"/><file name="warning.jpg" hash="4791546b01e33300aec5f4638e7b3f36"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="fr_FR"><file name="kr_stopie6.csv" hash="f09639ec0c21c4884632a511d0f02817"/></dir><dir name="it_IT"><file name="kr_stopie6.csv" hash="2ca60ef2633388107dd2246877d67ffa"/></dir><dir name="de_DE"><file name="kr_stopie6.csv" hash="2feda689a6eda4d86c337f3f4904f534"/></dir><dir name="pt_PT"><file name="kr_stopie6.csv" hash="19e5f351ba2608345e974ff8ca06d0f7"/></dir></target></contents>
|
20 |
+
<compatible/>
|
21 |
+
<dependencies/>
|
22 |
+
</package>
|
skin/frontend/default/default/css/kr/stopie6.css
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*** KR STOPIE6 - Kangourouge.com - magentomarket.eu ***/
|
2 |
+
.kroverlay { background: black; left:0; position:absolute; top:0; z-index:500; }
|
3 |
+
.krstopie6 { border: 1px solid #ccc; width: 350px; background: #FEEFDA; position: absolute; padding: 10px; z-index: 600; }
|
4 |
+
.krstopie6 .krinfo .warning { float: left;}
|
5 |
+
.krstopie6 .krinfo .txt { float: left; width: 270px; padding: 0 0 0 10px; }
|
6 |
+
.krstopie6 .krinfo .txt p { padding: 0 0 3px 0; }
|
7 |
+
.krstopie6 .krinfo .txt strong { font-size: 14px;}
|
8 |
+
.krstopie6 .browsers { clear: left; padding: 10px 0 0 0;}
|
9 |
+
.krstopie6 .browsers a { width: 84px; display: block; float: left; text-align: center;}
|
skin/frontend/default/default/images/kr/stopie6/chrome.jpg
ADDED
Binary file
|
skin/frontend/default/default/images/kr/stopie6/cornerx.jpg
ADDED
Binary file
|
skin/frontend/default/default/images/kr/stopie6/firefox.jpg
ADDED
Binary file
|
skin/frontend/default/default/images/kr/stopie6/ie8.jpg
ADDED
Binary file
|
skin/frontend/default/default/images/kr/stopie6/safari.jpg
ADDED
Binary file
|
skin/frontend/default/default/images/kr/stopie6/warning.jpg
ADDED
Binary file
|
skin/frontend/default/default/js/kr/stopie6.js
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Kangourouge - Magento Market (http://www.magentomarket.eu)
|
3 |
+
*
|
4 |
+
* @category Kr
|
5 |
+
* @package Kr_Stopie6
|
6 |
+
* @copyright Copyright (c) 2004-2010 Kangourouge. (http://www.kangourouge.com)
|
7 |
+
* @license GPL
|
8 |
+
*/
|
9 |
+
|
10 |
+
function KrCenterWindow(element){if($(element)!=null){var el=$(element);var elDims=el.getDimensions();var browserName=navigator.appName;if(browserName==="Microsoft Internet Explorer"){if(document.documentElement.clientWidth==0){var y=(document.viewport.getScrollOffsets().top+(document.body.clientHeight-elDims.height)/2);var x=(document.viewport.getScrollOffsets().left+(document.body.clientWidth-elDims.width)/2);}
|
11 |
+
else{var y=(document.viewport.getScrollOffsets().top+(document.documentElement.clientHeight-elDims.height)/2);var x=(document.viewport.getScrollOffsets().left+(document.documentElement.clientWidth-elDims.width)/2);}}
|
12 |
+
else{var y=Math.round(document.viewport.getScrollOffsets().top+((window.innerHeight-$(element).getHeight()))/2);var x=Math.round(document.viewport.getScrollOffsets().left+((window.innerWidth-$(element).getWidth()))/2);}
|
13 |
+
var styles={position:'absolute',top:y+'px',left:x+'px'};el.setStyle(styles);}}
|
14 |
+
function KrWriteCookie(name,value,expires){document.cookie=name+"="+escape(value)+((expires==null)?"":("; expires="+expires.toGMTString()));}
|
15 |
+
function KrArgsCookie(offset){var endstr=document.cookie.indexOf(";",offset);if(endstr==-1)endstr=document.cookie.length;return unescape(document.cookie.substring(offset,endstr));}
|
16 |
+
function KrReadCookie(name){var arg=name+"=";var alen=arg.length;var clen=document.cookie.length;var i=0;while(i<clen){var j=i+alen;if(document.cookie.substring(i,j)==arg)
|
17 |
+
return KrArgsCookie(j);i=document.cookie.indexOf(" ",i)+1;if(i==0)break;}
|
18 |
+
return null;}
|
19 |
+
function KrShowStopie6(){launch=KrReadCookie('krstopie6');if(!launch)
|
20 |
+
{KrOverlaySize();new Effect.Appear($('kroverlay'),{duration:0.5,to:0.8});var krstopie6=$('krstopie6');krstopie6.show();KrCenterWindow(krstopie6);}}
|
21 |
+
function KrHideStopie6(){new Effect.Fade($('kroverlay'),{duration:0.5,to:0});var krstopie6=$('krstopie6');krstopie6.hide();KrWriteCookie('krstopie6',true);}
|
22 |
+
function KrOverlaySize(){var browserName=navigator.appName;if(browserName==="Microsoft Internet Explorer"){if(document.documentElement.clientWidth==0){var y=(document.viewport.getScrollOffsets().top+document.body.clientHeight);var x=(document.viewport.getScrollOffsets().left+document.body.clientWidth);}
|
23 |
+
else{var y=(document.viewport.getScrollOffsets().top+document.documentElement.clientHeight);var x=(document.viewport.getScrollOffsets().left+document.documentElement.clientWidth);}}
|
24 |
+
else{var y=Math.round(document.viewport.getScrollOffsets().top+window.innerHeight);var x=Math.round(document.viewport.getScrollOffsets().left+window.innerWidth);}
|
25 |
+
var styles={height:y+'px',width:x+'px'};$('kroverlay').setStyle(styles);}
|