Version Notes
These is simple plug and play extension.
Download this release
Release Info
Developer | Deepak Mallah |
Extension | Page_Peel |
Version | 0.1.0 |
Comparing to | |
See all releases |
Version 0.1.0
- app/code/community/Deph/Peel/Helper/Data.php +25 -0
- app/code/community/Deph/Peel/Model/System/Config/Source/Direction.php +11 -0
- app/code/community/Deph/Peel/etc/config.xml +55 -0
- app/code/community/Deph/Peel/etc/system.xml +92 -0
- app/design/frontend/base/default/layout/peel.xml +18 -0
- app/design/frontend/base/default/template/peel.phtml +20 -0
- app/design/frontend/default/default/layout/peel.xml +18 -0
- app/design/frontend/default/default/template/peel.phtml +20 -0
- app/etc/modules/Deph_Peel.xml +9 -0
- js/pageear/AC_OETags.js +269 -0
- js/pageear/pageear.js +231 -0
- js/pageear/pageear_b.jpg +0 -0
- js/pageear/pageear_b.swf +0 -0
- js/pageear/pageear_s.jpg +0 -0
- js/pageear/pageear_s.swf +0 -0
- js/pageear/zoom.mp3 +0 -0
- media/pageear/default/pageear_b.jpg +0 -0
- media/pageear/default/pageear_s.jpg +0 -0
- media/pageear/default/sample_of_frame-500x500.JPG +0 -0
- media/pageear/default/sample_of_frame-500x500_1.JPG +0 -0
- media/pageear/default/sample_of_frame-500x500_2.JPG +0 -0
- media/pageear/default/th_despicable-minions-100x100.jpg +0 -0
- media/pageear/default/th_despicable-minions-100x100_1.jpg +0 -0
- media/pageear/default/th_despicable-minions-100x100_2.jpg +0 -0
- media/pageear/default/th_despicable-minions-100x100_3.jpg +0 -0
- package.xml +20 -0
app/code/community/Deph/Peel/Helper/Data.php
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Deph_Peel_Helper_Data extends Mage_Payment_Helper_Data
|
4 |
+
{
|
5 |
+
public function baseurl()
|
6 |
+
{
|
7 |
+
return Mage::getBaseUrl();
|
8 |
+
}
|
9 |
+
|
10 |
+
public function getSmallImage()
|
11 |
+
{
|
12 |
+
if(!$tmp = Mage::getStoreConfig('peel/settings/smallImage')){
|
13 |
+
$tmp = 'default/pageear_s.jpg';
|
14 |
+
}
|
15 |
+
return Mage::getBaseUrl('media')."pageear/".$tmp;
|
16 |
+
}
|
17 |
+
|
18 |
+
public function getBigImage()
|
19 |
+
{
|
20 |
+
if(!$tmp = Mage::getStoreConfig('peel/settings/bigImage')){
|
21 |
+
$tmp = 'default/pageear_b.jpg';
|
22 |
+
}
|
23 |
+
return Mage::getBaseUrl('media')."pageear/".$tmp;
|
24 |
+
}
|
25 |
+
}
|
app/code/community/Deph/Peel/Model/System/Config/Source/Direction.php
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Deph_Peel_Model_System_Config_Source_Direction
|
3 |
+
{
|
4 |
+
public function toOptionArray()
|
5 |
+
{
|
6 |
+
return array(
|
7 |
+
array('value' => 'rt', 'label'=>Mage::helper('peel')->__('Right Side')),
|
8 |
+
array('value' => 'lt', 'label'=>Mage::helper('peel')->__('Left Side')),
|
9 |
+
);
|
10 |
+
}
|
11 |
+
}
|
app/code/community/Deph/Peel/etc/config.xml
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Deph_Peel>
|
5 |
+
<version>0.1.0</version>
|
6 |
+
</Deph_Peel>
|
7 |
+
</modules>
|
8 |
+
<global>
|
9 |
+
<helpers>
|
10 |
+
<peel>
|
11 |
+
<class>Deph_Peel_Helper</class>
|
12 |
+
</peel>
|
13 |
+
</helpers>
|
14 |
+
</global>
|
15 |
+
<frontend>
|
16 |
+
<layout>
|
17 |
+
<updates>
|
18 |
+
<peel>
|
19 |
+
<file>peel.xml</file>
|
20 |
+
</peel>
|
21 |
+
</updates>
|
22 |
+
</layout>
|
23 |
+
</frontend>
|
24 |
+
<adminhtml>
|
25 |
+
<acl>
|
26 |
+
<resources>
|
27 |
+
<admin>
|
28 |
+
<children>
|
29 |
+
<system>
|
30 |
+
<children>
|
31 |
+
<config>
|
32 |
+
<children>
|
33 |
+
<peel translate="title" module="moneybookers">
|
34 |
+
<title>Page Peel</title>
|
35 |
+
</peel>
|
36 |
+
</children>
|
37 |
+
</config>
|
38 |
+
</children>
|
39 |
+
</system>
|
40 |
+
</children>
|
41 |
+
</admin>
|
42 |
+
</resources>
|
43 |
+
</acl>
|
44 |
+
</adminhtml>
|
45 |
+
<default>
|
46 |
+
<peel>
|
47 |
+
<settings>
|
48 |
+
<enabled>1</enabled>
|
49 |
+
<redirect_url>http://www.google.com</redirect_url>
|
50 |
+
<tab>1</tab>
|
51 |
+
<direction>lt</direction>
|
52 |
+
</settings>
|
53 |
+
</peel>
|
54 |
+
</default>
|
55 |
+
</config>
|
app/code/community/Deph/Peel/etc/system.xml
ADDED
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<tabs>
|
4 |
+
<peel translate="label" module="peel">
|
5 |
+
<label>Deph Extensions</label>
|
6 |
+
<sort_order>100</sort_order>
|
7 |
+
</peel>
|
8 |
+
</tabs>
|
9 |
+
<sections>
|
10 |
+
<peel translate="label" module="peel">
|
11 |
+
<label>Page Peel Setting</label>
|
12 |
+
<tab>peel</tab>
|
13 |
+
<frontend_type>text</frontend_type>
|
14 |
+
<sort_order>0</sort_order>
|
15 |
+
<show_in_default>1</show_in_default>
|
16 |
+
<show_in_website>1</show_in_website>
|
17 |
+
<show_in_store>1</show_in_store>
|
18 |
+
<groups>
|
19 |
+
<settings translate="label">
|
20 |
+
<label>Configuration</label>
|
21 |
+
<frontend_type>text</frontend_type>
|
22 |
+
<sort_order>1</sort_order>
|
23 |
+
<show_in_default>1</show_in_default>
|
24 |
+
<show_in_website>1</show_in_website>
|
25 |
+
<show_in_store>1</show_in_store>
|
26 |
+
<fields>
|
27 |
+
<enabled translate="label">
|
28 |
+
<label>Enable Peel Effect</label>
|
29 |
+
<frontend_type>select</frontend_type>
|
30 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
31 |
+
<sort_order>0</sort_order>
|
32 |
+
<show_in_default>1</show_in_default>
|
33 |
+
<show_in_website>1</show_in_website>
|
34 |
+
<show_in_store>0</show_in_store>
|
35 |
+
</enabled>
|
36 |
+
<redirect_url translate="label,comment">
|
37 |
+
<label>Enter the Url to which you want to redirect</label>
|
38 |
+
<frontend_type>text</frontend_type>
|
39 |
+
<sort_order>1</sort_order>
|
40 |
+
<show_in_default>1</show_in_default>
|
41 |
+
<show_in_website>1</show_in_website>
|
42 |
+
<show_in_store>1</show_in_store>
|
43 |
+
<comment>Enter url here, like http://www.google.com</comment>
|
44 |
+
</redirect_url>
|
45 |
+
<tab translate="label">
|
46 |
+
<label>Open in New Tab</label>
|
47 |
+
<frontend_type>select</frontend_type>
|
48 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
49 |
+
<sort_order>3</sort_order>
|
50 |
+
<show_in_default>1</show_in_default>
|
51 |
+
<show_in_website>1</show_in_website>
|
52 |
+
<show_in_store>0</show_in_store>
|
53 |
+
</tab>
|
54 |
+
<direction translate="label">
|
55 |
+
<label>Which Side</label>
|
56 |
+
<frontend_type>select</frontend_type>
|
57 |
+
<source_model>deph_peel_model_system_config_source_direction</source_model>
|
58 |
+
<sort_order>4</sort_order>
|
59 |
+
<show_in_default>1</show_in_default>
|
60 |
+
<show_in_website>1</show_in_website>
|
61 |
+
<show_in_store>0</show_in_store>
|
62 |
+
</direction>
|
63 |
+
<bigImage translate="label">
|
64 |
+
<label>Big Image</label>
|
65 |
+
<comment><![CDATA[<b style="color:red">Please Make sure the Image size is 500x500.</b>]]>Allowed file types: jpeg, gif, png.</comment>
|
66 |
+
<frontend_type>image</frontend_type>
|
67 |
+
<backend_model>adminhtml/system_config_backend_image</backend_model>
|
68 |
+
<upload_dir config="system/filesystem/media" scope_info="1">pageear</upload_dir>
|
69 |
+
<base_url type="media" scope_info="1">pageear</base_url>
|
70 |
+
<sort_order>5</sort_order>
|
71 |
+
<show_in_default>1</show_in_default>
|
72 |
+
<show_in_website>1</show_in_website>
|
73 |
+
<show_in_store>1</show_in_store>
|
74 |
+
</bigImage>
|
75 |
+
<smallImage translate="label">
|
76 |
+
<label>Small Image</label>
|
77 |
+
<comment><![CDATA[<b style="color:red">Please Make sure the Image size is 100x100.</b>]]>Allowed file types: jpeg, gif, png.</comment>
|
78 |
+
<frontend_type>image</frontend_type>
|
79 |
+
<backend_model>adminhtml/system_config_backend_image</backend_model>
|
80 |
+
<upload_dir config="system/filesystem/media" scope_info="1">pageear</upload_dir>
|
81 |
+
<base_url type="media" scope_info="1">pageear</base_url>
|
82 |
+
<sort_order>6</sort_order>
|
83 |
+
<show_in_default>1</show_in_default>
|
84 |
+
<show_in_website>1</show_in_website>
|
85 |
+
<show_in_store>1</show_in_store>
|
86 |
+
</smallImage>
|
87 |
+
</fields>
|
88 |
+
</settings>
|
89 |
+
</groups>
|
90 |
+
</peel>
|
91 |
+
</sections>
|
92 |
+
</config>
|
app/design/frontend/base/default/layout/peel.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
|
3 |
+
<layout version="0.1.0">
|
4 |
+
<default>
|
5 |
+
<reference name="head">
|
6 |
+
<action method="addJs"><script>pageear/AC_OETags.js</script></action>
|
7 |
+
<action method="addJs"><script>pageear/pageear.js</script></action>
|
8 |
+
</reference>
|
9 |
+
<reference name="footer">
|
10 |
+
<block type="core/template" name="page.peel" template="peel.phtml" />
|
11 |
+
<!--block type="core/text" name="peel.js" after="-">
|
12 |
+
<action method="setText">
|
13 |
+
<text><![CDATA[<script type="text/javascript">writeObjects();</script>]]></text>
|
14 |
+
</action>
|
15 |
+
</block-->
|
16 |
+
</reference>
|
17 |
+
</default>
|
18 |
+
</layout>
|
app/design/frontend/base/default/template/peel.phtml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php $helper = $this->helper('peel');
|
2 |
+
$base_url = $helper->baseurl();
|
3 |
+
|
4 |
+
$status = Mage::getStoreConfig('peel/settings/enabled');
|
5 |
+
|
6 |
+
$redirect_url = Mage::getStoreConfig('peel/settings/redirect_url');
|
7 |
+
|
8 |
+
$tab = Mage::getStoreConfig('peel/settings/tab');
|
9 |
+
|
10 |
+
$direction = Mage::getStoreConfig('peel/settings/direction');
|
11 |
+
|
12 |
+
$bigImage = $helper->getBigImage();;
|
13 |
+
|
14 |
+
$smallImage = $helper->getSmallImage();
|
15 |
+
|
16 |
+
?>
|
17 |
+
|
18 |
+
<script type="text/javascript">
|
19 |
+
writeObjects("<?php echo $base_url?>", "<?php echo $redirect_url?>", "<?php echo $tab ?>", "<?php echo $direction ?>", "<?php echo $bigImage?>", "<?php echo $smallImage?>");
|
20 |
+
</script>
|
app/design/frontend/default/default/layout/peel.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
|
3 |
+
<layout version="0.1.0">
|
4 |
+
<default>
|
5 |
+
<reference name="head">
|
6 |
+
<action method="addJs"><script>pageear/AC_OETags.js</script></action>
|
7 |
+
<action method="addJs"><script>pageear/pageear.js</script></action>
|
8 |
+
</reference>
|
9 |
+
<reference name="footer">
|
10 |
+
<block type="core/template" name="page.peel" template="peel.phtml" />
|
11 |
+
<!--block type="core/text" name="peel.js" after="-">
|
12 |
+
<action method="setText">
|
13 |
+
<text><![CDATA[<script type="text/javascript">writeObjects();</script>]]></text>
|
14 |
+
</action>
|
15 |
+
</block-->
|
16 |
+
</reference>
|
17 |
+
</default>
|
18 |
+
</layout>
|
app/design/frontend/default/default/template/peel.phtml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php $helper = $this->helper('peel');
|
2 |
+
$base_url = $helper->baseurl();
|
3 |
+
|
4 |
+
$status = Mage::getStoreConfig('peel/settings/enabled');
|
5 |
+
|
6 |
+
$redirect_url = Mage::getStoreConfig('peel/settings/redirect_url');
|
7 |
+
|
8 |
+
$tab = Mage::getStoreConfig('peel/settings/tab');
|
9 |
+
|
10 |
+
$direction = Mage::getStoreConfig('peel/settings/direction');
|
11 |
+
|
12 |
+
$bigImage = $helper->getBigImage();;
|
13 |
+
|
14 |
+
$smallImage = $helper->getSmallImage();
|
15 |
+
|
16 |
+
?>
|
17 |
+
|
18 |
+
<script type="text/javascript">
|
19 |
+
writeObjects("<?php echo $base_url?>", "<?php echo $redirect_url?>", "<?php echo $tab ?>", "<?php echo $direction ?>", "<?php echo $bigImage?>", "<?php echo $smallImage?>");
|
20 |
+
</script>
|
app/etc/modules/Deph_Peel.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Deph_Peel>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</Deph_Peel>
|
8 |
+
</modules>
|
9 |
+
</config>
|
js/pageear/AC_OETags.js
ADDED
@@ -0,0 +1,269 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// Flash Player Version Detection - Rev 1.5
|
2 |
+
// Detect Client Browser type
|
3 |
+
// Copyright(c) 2005-2006 Adobe Macromedia Software, LLC. All rights reserved.
|
4 |
+
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
|
5 |
+
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
|
6 |
+
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
|
7 |
+
|
8 |
+
function ControlVersion()
|
9 |
+
{
|
10 |
+
var version;
|
11 |
+
var axo;
|
12 |
+
var e;
|
13 |
+
|
14 |
+
// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry
|
15 |
+
|
16 |
+
try {
|
17 |
+
// version will be set for 7.X or greater players
|
18 |
+
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
|
19 |
+
version = axo.GetVariable("$version");
|
20 |
+
} catch (e) {
|
21 |
+
}
|
22 |
+
|
23 |
+
if (!version)
|
24 |
+
{
|
25 |
+
try {
|
26 |
+
// version will be set for 6.X players only
|
27 |
+
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
|
28 |
+
|
29 |
+
// installed player is some revision of 6.0
|
30 |
+
// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
|
31 |
+
// so we have to be careful.
|
32 |
+
|
33 |
+
// default to the first public version
|
34 |
+
version = "WIN 6,0,21,0";
|
35 |
+
|
36 |
+
// throws if AllowScripAccess does not exist (introduced in 6.0r47)
|
37 |
+
axo.AllowScriptAccess = "always";
|
38 |
+
|
39 |
+
// safe to call for 6.0r47 or greater
|
40 |
+
version = axo.GetVariable("$version");
|
41 |
+
|
42 |
+
} catch (e) {
|
43 |
+
}
|
44 |
+
}
|
45 |
+
|
46 |
+
if (!version)
|
47 |
+
{
|
48 |
+
try {
|
49 |
+
// version will be set for 4.X or 5.X player
|
50 |
+
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
|
51 |
+
version = axo.GetVariable("$version");
|
52 |
+
} catch (e) {
|
53 |
+
}
|
54 |
+
}
|
55 |
+
|
56 |
+
if (!version)
|
57 |
+
{
|
58 |
+
try {
|
59 |
+
// version will be set for 3.X player
|
60 |
+
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
|
61 |
+
version = "WIN 3,0,18,0";
|
62 |
+
} catch (e) {
|
63 |
+
}
|
64 |
+
}
|
65 |
+
|
66 |
+
if (!version)
|
67 |
+
{
|
68 |
+
try {
|
69 |
+
// version will be set for 2.X player
|
70 |
+
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
|
71 |
+
version = "WIN 2,0,0,11";
|
72 |
+
} catch (e) {
|
73 |
+
version = -1;
|
74 |
+
}
|
75 |
+
}
|
76 |
+
|
77 |
+
return version;
|
78 |
+
}
|
79 |
+
|
80 |
+
// JavaScript helper required to detect Flash Player PlugIn version information
|
81 |
+
function GetSwfVer(){
|
82 |
+
// NS/Opera version >= 3 check for Flash plugin in plugin array
|
83 |
+
var flashVer = -1;
|
84 |
+
|
85 |
+
if (navigator.plugins != null && navigator.plugins.length > 0) {
|
86 |
+
if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
|
87 |
+
var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
|
88 |
+
var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
|
89 |
+
var descArray = flashDescription.split(" ");
|
90 |
+
var tempArrayMajor = descArray[2].split(".");
|
91 |
+
var versionMajor = tempArrayMajor[0];
|
92 |
+
var versionMinor = tempArrayMajor[1];
|
93 |
+
if ( descArray[3] != "" ) {
|
94 |
+
tempArrayMinor = descArray[3].split("r");
|
95 |
+
} else {
|
96 |
+
tempArrayMinor = descArray[4].split("r");
|
97 |
+
}
|
98 |
+
var versionRevision = tempArrayMinor[1] > 0 ? tempArrayMinor[1] : 0;
|
99 |
+
var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
|
100 |
+
}
|
101 |
+
}
|
102 |
+
// MSN/WebTV 2.6 supports Flash 4
|
103 |
+
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
|
104 |
+
// WebTV 2.5 supports Flash 3
|
105 |
+
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
|
106 |
+
// older WebTV supports Flash 2
|
107 |
+
else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
|
108 |
+
else if ( isIE && isWin && !isOpera ) {
|
109 |
+
flashVer = ControlVersion();
|
110 |
+
}
|
111 |
+
return flashVer;
|
112 |
+
}
|
113 |
+
|
114 |
+
// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
|
115 |
+
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
|
116 |
+
{
|
117 |
+
versionStr = GetSwfVer();
|
118 |
+
if (versionStr == -1 ) {
|
119 |
+
return false;
|
120 |
+
} else if (versionStr != 0) {
|
121 |
+
if(isIE && isWin && !isOpera) {
|
122 |
+
// Given "WIN 2,0,0,11"
|
123 |
+
tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"]
|
124 |
+
tempString = tempArray[1]; // "2,0,0,11"
|
125 |
+
versionArray = tempString.split(","); // ['2', '0', '0', '11']
|
126 |
+
} else {
|
127 |
+
versionArray = versionStr.split(".");
|
128 |
+
}
|
129 |
+
var versionMajor = versionArray[0];
|
130 |
+
var versionMinor = versionArray[1];
|
131 |
+
var versionRevision = versionArray[2];
|
132 |
+
|
133 |
+
// is the major.revision >= requested major.revision AND the minor version >= requested minor
|
134 |
+
if (versionMajor > parseFloat(reqMajorVer)) {
|
135 |
+
return true;
|
136 |
+
} else if (versionMajor == parseFloat(reqMajorVer)) {
|
137 |
+
if (versionMinor > parseFloat(reqMinorVer))
|
138 |
+
return true;
|
139 |
+
else if (versionMinor == parseFloat(reqMinorVer)) {
|
140 |
+
if (versionRevision >= parseFloat(reqRevision))
|
141 |
+
return true;
|
142 |
+
}
|
143 |
+
}
|
144 |
+
return false;
|
145 |
+
}
|
146 |
+
}
|
147 |
+
|
148 |
+
function AC_AddExtension(src, ext)
|
149 |
+
{
|
150 |
+
if (src.indexOf('?') != -1)
|
151 |
+
return src.replace(/\?/, ext+'?');
|
152 |
+
else
|
153 |
+
return src + ext;
|
154 |
+
}
|
155 |
+
|
156 |
+
function AC_Generateobj(objAttrs, params, embedAttrs)
|
157 |
+
{
|
158 |
+
var str = '';
|
159 |
+
if (isIE && isWin && !isOpera)
|
160 |
+
{
|
161 |
+
str += '<object ';
|
162 |
+
for (var i in objAttrs)
|
163 |
+
str += i + '="' + objAttrs[i] + '" ';
|
164 |
+
for (var i in params)
|
165 |
+
str += '><param name="' + i + '" value="' + params[i] + '" /> ';
|
166 |
+
str += '></object>';
|
167 |
+
} else {
|
168 |
+
str += '<embed ';
|
169 |
+
for (var i in embedAttrs)
|
170 |
+
str += i + '="' + embedAttrs[i] + '" ';
|
171 |
+
str += '> </embed>';
|
172 |
+
}
|
173 |
+
|
174 |
+
document.write(str);
|
175 |
+
}
|
176 |
+
|
177 |
+
function AC_FL_RunContent(){
|
178 |
+
var ret =
|
179 |
+
AC_GetArgs
|
180 |
+
( arguments, "", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
|
181 |
+
, "application/x-shockwave-flash"
|
182 |
+
);
|
183 |
+
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
|
184 |
+
}
|
185 |
+
|
186 |
+
function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
|
187 |
+
var ret = new Object();
|
188 |
+
ret.embedAttrs = new Object();
|
189 |
+
ret.params = new Object();
|
190 |
+
ret.objAttrs = new Object();
|
191 |
+
for (var i=0; i < args.length; i=i+2){
|
192 |
+
var currArg = args[i].toLowerCase();
|
193 |
+
|
194 |
+
switch (currArg){
|
195 |
+
case "classid":
|
196 |
+
break;
|
197 |
+
case "pluginspage":
|
198 |
+
ret.embedAttrs[args[i]] = args[i+1];
|
199 |
+
break;
|
200 |
+
case "src":
|
201 |
+
case "movie":
|
202 |
+
args[i+1] = AC_AddExtension(args[i+1], ext);
|
203 |
+
ret.embedAttrs["src"] = args[i+1];
|
204 |
+
ret.params[srcParamName] = args[i+1];
|
205 |
+
break;
|
206 |
+
case "onafterupdate":
|
207 |
+
case "onbeforeupdate":
|
208 |
+
case "onblur":
|
209 |
+
case "oncellchange":
|
210 |
+
case "onclick":
|
211 |
+
case "ondblClick":
|
212 |
+
case "ondrag":
|
213 |
+
case "ondragend":
|
214 |
+
case "ondragenter":
|
215 |
+
case "ondragleave":
|
216 |
+
case "ondragover":
|
217 |
+
case "ondrop":
|
218 |
+
case "onfinish":
|
219 |
+
case "onfocus":
|
220 |
+
case "onhelp":
|
221 |
+
case "onmousedown":
|
222 |
+
case "onmouseup":
|
223 |
+
case "onmouseover":
|
224 |
+
case "onmousemove":
|
225 |
+
case "onmouseout":
|
226 |
+
case "onkeypress":
|
227 |
+
case "onkeydown":
|
228 |
+
case "onkeyup":
|
229 |
+
case "onload":
|
230 |
+
case "onlosecapture":
|
231 |
+
case "onpropertychange":
|
232 |
+
case "onreadystatechange":
|
233 |
+
case "onrowsdelete":
|
234 |
+
case "onrowenter":
|
235 |
+
case "onrowexit":
|
236 |
+
case "onrowsinserted":
|
237 |
+
case "onstart":
|
238 |
+
case "onscroll":
|
239 |
+
case "onbeforeeditfocus":
|
240 |
+
case "onactivate":
|
241 |
+
case "onbeforedeactivate":
|
242 |
+
case "ondeactivate":
|
243 |
+
case "type":
|
244 |
+
case "codebase":
|
245 |
+
case "id":
|
246 |
+
ret.objAttrs[args[i]] = args[i+1];
|
247 |
+
break;
|
248 |
+
case "width":
|
249 |
+
case "height":
|
250 |
+
case "align":
|
251 |
+
case "vspace":
|
252 |
+
case "hspace":
|
253 |
+
case "class":
|
254 |
+
case "title":
|
255 |
+
case "accesskey":
|
256 |
+
case "name":
|
257 |
+
case "tabindex":
|
258 |
+
ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
|
259 |
+
break;
|
260 |
+
default:
|
261 |
+
ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
|
262 |
+
}
|
263 |
+
}
|
264 |
+
ret.objAttrs["classid"] = classid;
|
265 |
+
if (mimeType) ret.embedAttrs["type"] = mimeType;
|
266 |
+
return ret;
|
267 |
+
}
|
268 |
+
|
269 |
+
|
js/pageear/pageear.js
ADDED
@@ -0,0 +1,231 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// URL zum kleinen Bild / URL to small image
|
2 |
+
var pagearSmallImg = 'js/pageear/pageear_s.jpg';
|
3 |
+
// URL zu pageear_s.swf / URL to small pageear swf
|
4 |
+
var pagearSmallSwf = 'js/pageear/pageear_s.swf';
|
5 |
+
|
6 |
+
// URL zum gro�en Bild / URL to big image
|
7 |
+
var pagearBigImg = 'js/pageear/pageear_b.jpg';
|
8 |
+
// URL zu pageear_b.swf / URL to big pageear swf
|
9 |
+
var pagearBigSwf = 'js/pageear/pageear_b.swf';
|
10 |
+
|
11 |
+
// Wackelgeschwindigkeit der Ecke 1-4 (2=Standard)
|
12 |
+
// Movement speed of small pageear 1-4 (2=Standard)
|
13 |
+
var speedSmall = 1;
|
14 |
+
// Bild spiegelt sich in der aufgeschlagenen Ecke ( true | false )
|
15 |
+
// Mirror image ( true | false )
|
16 |
+
var mirror = 'true';
|
17 |
+
// Farbe der aufgeschlagenen Ecke wenn mirror false ist
|
18 |
+
// Color of pagecorner if mirror is false
|
19 |
+
var pageearColor = 'ffffff';
|
20 |
+
// Zu �ffnende URL bei klick auf die ge�ffnete Ecke
|
21 |
+
// URL to open on pageear click
|
22 |
+
var jumpTo = 'http://www.google.com';
|
23 |
+
// �ffnet den link im neuen Fenster (new) oder im selben (self)
|
24 |
+
// Browser target (new) or self (self)
|
25 |
+
var openLink = 'new';
|
26 |
+
// �ffnet das pagepeel automatisch wenn es geladen ist (false:deaktiviert | 0.1 - X Sekunden bis zum �ffnen)
|
27 |
+
// Opens pageear automaticly (false:deactivated | 0.1 - X seconds to open)
|
28 |
+
var openOnLoad = false;
|
29 |
+
// Sekunden bis sich das pagepeel wieder schlie�t, funktioniert nur im Zusammenhang mit der openOnLoad-Funktion
|
30 |
+
// Second until pageear close after openOnLoad
|
31 |
+
var closeOnLoad = 3;
|
32 |
+
// Ecke in der das Pagepeel erscheinen soll (lt: linke obere Ecke | rt: rechte obere Ecke )
|
33 |
+
// Set direction of pageear in left or right top browser corner (lt: left | rt: right )
|
34 |
+
var setDirection = 'lt';
|
35 |
+
// Weiches einblenden des pageear wenn Bild geladen (0-5: 0=aus, 1=langsam, 5=schnell )
|
36 |
+
// Fade in pageear if image completly loaded (0-5: 0=off, 1=slow, 5=fast )
|
37 |
+
var softFadeIn = 1;
|
38 |
+
// Hintergrundsound einmalig abspielen (false:deaktiviert | URL:Mp3 File z.b. www.domain.de/meinsound.mp3)
|
39 |
+
// Plays background music once abspielen (false:deactivated | URL:Mp3 File e.g. www.domain.de/mysound.mp3)
|
40 |
+
var playSound = 'false'
|
41 |
+
// Spielt Sound beim �ffnen (false:deaktiviert | URL:Mp3 File z.b. www.domain.de/meinsound.mp3)
|
42 |
+
// Play sound on opening peel (false:deactivated | URL:Mp3 File e.g. www.domain.de/mysound.mp3)
|
43 |
+
var playOpenSound = 'false';
|
44 |
+
// Spielt Sound beim schlie�en (false:deaktiviert | URL:Mp3 File z.b. www.domain.de/meinsound.mp3)
|
45 |
+
// Play sound on closing peel (false:deactivated | URL:Mp3 File e.g. www.domain.de/mysound.mp3)
|
46 |
+
var playCloseSound = 'false';
|
47 |
+
// Wird das peel ge�ffnet, bleibt es solange offen bis auf das schlie�en-Symbol geklickt wird
|
48 |
+
// Peel close first if button close will be clicked
|
49 |
+
var closeOnClick = 'false';
|
50 |
+
// Text neben schlie�en-Symbol
|
51 |
+
// Close text
|
52 |
+
var closeOnClickText = 'Close';
|
53 |
+
|
54 |
+
/*
|
55 |
+
* Ab hier nichts mehr �ndern / Do not change anything after this line
|
56 |
+
*/
|
57 |
+
|
58 |
+
// Flash check vars
|
59 |
+
var requiredMajorVersion = 6;
|
60 |
+
var requiredMinorVersion = 0;
|
61 |
+
var requiredRevision = 0;
|
62 |
+
|
63 |
+
// Copyright
|
64 |
+
var copyright = 'Webpicasso Media, www.webpicasso.de';
|
65 |
+
|
66 |
+
// Size small peel
|
67 |
+
var thumbWidth = 100;
|
68 |
+
var thumbHeight = 100;
|
69 |
+
|
70 |
+
// Size big peel
|
71 |
+
var bigWidth = 500;
|
72 |
+
var bigHeight = 500;
|
73 |
+
|
74 |
+
// Css style default x-position
|
75 |
+
var xPos = 'right';
|
76 |
+
|
77 |
+
|
78 |
+
// GET - Params
|
79 |
+
/*
|
80 |
+
var queryParams = 'pagearSmallImg='+escape(pagearSmallImg);
|
81 |
+
queryParams += '&pagearBigImg='+escape(pagearBigImg);
|
82 |
+
queryParams += '&pageearColor='+pageearColor;
|
83 |
+
queryParams += '&jumpTo='+escape(jumpTo);
|
84 |
+
queryParams += '&openLink='+escape(openLink);
|
85 |
+
queryParams += '&mirror='+escape(mirror);
|
86 |
+
queryParams += '©right='+escape(copyright);
|
87 |
+
queryParams += '&speedSmall='+escape(speedSmall);
|
88 |
+
queryParams += '&openOnLoad='+escape(openOnLoad);
|
89 |
+
queryParams += '&closeOnLoad='+escape(closeOnLoad);
|
90 |
+
queryParams += '&setDirection='+escape(setDirection);
|
91 |
+
queryParams += '&softFadeIn='+escape(softFadeIn);
|
92 |
+
queryParams += '&playSound='+escape(playSound);
|
93 |
+
queryParams += '&playOpenSound='+escape(playOpenSound);
|
94 |
+
queryParams += '&playCloseSound='+escape(playCloseSound);
|
95 |
+
queryParams += '&closeOnClick='+escape(closeOnClick);
|
96 |
+
queryParams += '&closeOnClickText='+escape(utf8encode(closeOnClickText));
|
97 |
+
queryParams += '&lcKey='+escape(Math.random());
|
98 |
+
queryParams += '&bigWidth='+escape(bigWidth);
|
99 |
+
queryParams += '&thumbWidth='+escape(thumbWidth);
|
100 |
+
*/
|
101 |
+
|
102 |
+
function openPeel(){
|
103 |
+
document.getElementById('bigDiv').style.top = '0px';
|
104 |
+
document.getElementById('bigDiv').style[xPos] = '0px';
|
105 |
+
document.getElementById('thumbDiv').style.top = '-1000px';
|
106 |
+
}
|
107 |
+
|
108 |
+
function closePeel(){
|
109 |
+
document.getElementById("thumbDiv").style.top = "0px";
|
110 |
+
document.getElementById("bigDiv").style.top = "-1000px";
|
111 |
+
}
|
112 |
+
|
113 |
+
function writeObjects (base, redirect, tab, direction, Bigimage, smallImage) {
|
114 |
+
jumpTo = redirect; // page redirect url
|
115 |
+
|
116 |
+
if(tab == 1){
|
117 |
+
openLink = 'new';
|
118 |
+
}else{
|
119 |
+
openLink = 'self';
|
120 |
+
}
|
121 |
+
|
122 |
+
setDirection = direction; // left side or right side
|
123 |
+
pagearBigImg = Bigimage; // Big Image
|
124 |
+
pagearSmallImg = smallImage; // Small Image
|
125 |
+
|
126 |
+
var queryParams = 'pagearSmallImg='+escape(pagearSmallImg);
|
127 |
+
queryParams += '&pagearBigImg='+escape(pagearBigImg);
|
128 |
+
queryParams += '&pageearColor='+pageearColor;
|
129 |
+
queryParams += '&jumpTo='+escape(jumpTo);
|
130 |
+
queryParams += '&openLink='+escape(openLink);
|
131 |
+
queryParams += '&mirror='+escape(mirror);
|
132 |
+
queryParams += '©right='+escape(copyright);
|
133 |
+
queryParams += '&speedSmall='+escape(speedSmall);
|
134 |
+
queryParams += '&openOnLoad='+escape(openOnLoad);
|
135 |
+
queryParams += '&closeOnLoad='+escape(closeOnLoad);
|
136 |
+
queryParams += '&setDirection='+escape(setDirection);
|
137 |
+
queryParams += '&softFadeIn='+escape(softFadeIn);
|
138 |
+
queryParams += '&playSound='+escape(playSound);
|
139 |
+
queryParams += '&playOpenSound='+escape(playOpenSound);
|
140 |
+
queryParams += '&playCloseSound='+escape(playCloseSound);
|
141 |
+
queryParams += '&closeOnClick='+escape(closeOnClick);
|
142 |
+
queryParams += '&closeOnClickText='+escape(utf8encode(closeOnClickText));
|
143 |
+
queryParams += '&lcKey='+escape(Math.random());
|
144 |
+
queryParams += '&bigWidth='+escape(bigWidth);
|
145 |
+
queryParams += '&thumbWidth='+escape(thumbWidth);
|
146 |
+
// Get installed flashversion
|
147 |
+
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
|
148 |
+
|
149 |
+
// Check direction
|
150 |
+
if(setDirection == 'lt') {
|
151 |
+
xPosBig = 'left:-1000px';
|
152 |
+
xPos = 'left';
|
153 |
+
} else {
|
154 |
+
xPosBig = 'right:1000px';
|
155 |
+
xPos = 'right';
|
156 |
+
}
|
157 |
+
|
158 |
+
// Write div layer for big swf
|
159 |
+
document.write('<div id="bigDiv" style="position:absolute;width:'+ bigWidth +'px;height:'+ bigHeight +'px;z-index:9999;'+xPosBig+';top:-100px;">');
|
160 |
+
|
161 |
+
// Check if flash exists/ version matched
|
162 |
+
if (hasReqestedVersion) {
|
163 |
+
AC_FL_RunContent(
|
164 |
+
"src", base+pagearBigSwf+'?'+ queryParams,
|
165 |
+
"width", bigWidth,
|
166 |
+
"height", bigHeight,
|
167 |
+
"align", "middle",
|
168 |
+
"id", "bigSwf",
|
169 |
+
"quality", "high",
|
170 |
+
"bgcolor", "#FFFFFF",
|
171 |
+
"name", "bigSwf",
|
172 |
+
"wmode", "transparent",
|
173 |
+
"scale", "noscale",
|
174 |
+
"salign", "tr",
|
175 |
+
"allowScriptAccess","always",
|
176 |
+
"type", "application/x-shockwave-flash",
|
177 |
+
'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
|
178 |
+
"pluginspage", "http://www.adobe.com/go/getflashplayer"
|
179 |
+
);
|
180 |
+
} else { // otherwise do nothing or write message ...
|
181 |
+
document.write('no flash installed'); // non-flash content
|
182 |
+
}
|
183 |
+
// Close div layer for big swf
|
184 |
+
document.write('</div>');
|
185 |
+
|
186 |
+
// Write div layer for small swf
|
187 |
+
document.write('<div id="thumbDiv" style="position:absolute;width:'+ thumbWidth +'px;height:'+ thumbHeight +'px;z-index:9999;'+xPos+':0px;top:0px;">');
|
188 |
+
|
189 |
+
// Check if flash exists/ version matched
|
190 |
+
if (hasReqestedVersion) {
|
191 |
+
AC_FL_RunContent(
|
192 |
+
"src", base+pagearSmallSwf+'?'+ queryParams,
|
193 |
+
"width", thumbWidth,
|
194 |
+
"height", thumbHeight,
|
195 |
+
"align", "middle",
|
196 |
+
"id", "smallSwf",
|
197 |
+
"scale", "noscale",
|
198 |
+
"quality", "high",
|
199 |
+
"bgcolor", "#FFFFFF",
|
200 |
+
"name", "bigSwf",
|
201 |
+
"wmode", "transparent",
|
202 |
+
"allowScriptAccess","always",
|
203 |
+
"type", "application/x-shockwave-flash",
|
204 |
+
'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
|
205 |
+
"pluginspage", "http://www.adobe.com/go/getflashplayer"
|
206 |
+
);
|
207 |
+
} else { // otherwise do nothing or write message ...
|
208 |
+
document.write('no flash installed'); // non-flash content
|
209 |
+
}
|
210 |
+
document.write('</div>');
|
211 |
+
setTimeout('document.getElementById("bigDiv").style.top = "-1000px";',100);
|
212 |
+
}
|
213 |
+
|
214 |
+
function utf8encode(txt) {
|
215 |
+
txt = txt.replace(/\r\n/g,"\n");
|
216 |
+
var utf8txt = "";
|
217 |
+
for(var i=0;i<txt.length;i++) {
|
218 |
+
var uc=txt.charCodeAt(i);
|
219 |
+
if (uc<128) {
|
220 |
+
utf8txt += String.fromCharCode(uc);
|
221 |
+
} else if((uc>127) && (uc<2048)) {
|
222 |
+
utf8txt += String.fromCharCode((uc>>6)|192);
|
223 |
+
utf8txt += String.fromCharCode((uc&63)|128);
|
224 |
+
} else {
|
225 |
+
utf8txt += String.fromCharCode((uc>>12)|224);
|
226 |
+
utf8txt += String.fromCharCode(((uc>>6)&63)|128);
|
227 |
+
utf8txt += String.fromCharCode((uc&63)|128);
|
228 |
+
}
|
229 |
+
}
|
230 |
+
return utf8txt;
|
231 |
+
}
|
js/pageear/pageear_b.jpg
ADDED
Binary file
|
js/pageear/pageear_b.swf
ADDED
Binary file
|
js/pageear/pageear_s.jpg
ADDED
Binary file
|
js/pageear/pageear_s.swf
ADDED
Binary file
|
js/pageear/zoom.mp3
ADDED
Binary file
|
media/pageear/default/pageear_b.jpg
ADDED
Binary file
|
media/pageear/default/pageear_s.jpg
ADDED
Binary file
|
media/pageear/default/sample_of_frame-500x500.JPG
ADDED
Binary file
|
media/pageear/default/sample_of_frame-500x500_1.JPG
ADDED
Binary file
|
media/pageear/default/sample_of_frame-500x500_2.JPG
ADDED
Binary file
|
media/pageear/default/th_despicable-minions-100x100.jpg
ADDED
Binary file
|
media/pageear/default/th_despicable-minions-100x100_1.jpg
ADDED
Binary file
|
media/pageear/default/th_despicable-minions-100x100_2.jpg
ADDED
Binary file
|
media/pageear/default/th_despicable-minions-100x100_3.jpg
ADDED
Binary file
|
package.xml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Page_Peel</name>
|
4 |
+
<version>0.1.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License v. 3.0 (OSL-3.0) This Open Software License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work: Licensed under the Open Software License version 3.0 1) Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following: a) to reproduce the Original Work in copies, either alone or as part of a collective work; b) to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating derivative works ("Derivative Works") based upon the Original Work; c) to distribute or communicate copies of the Original Work and Derivative Works to the public, with the proviso that copies of Original Work or Derivative Works that You distribute or communicate shall be licensed under this Open Software License; d) to perform the Original Work publicly; and e) to display the Original Work publicly. 2) Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works. 3) Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work. 4) Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor's trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license. 5) External Deployment. The term "External Deployment" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c). 6) Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work. 7) Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer. 8) Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation. 9) Acceptance and Termination. If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including "fair use" or "fair dealing"). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c). 10) Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware. 11) Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License. 12) Attorneys' Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License. 13) Miscellaneous. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. 14) Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. 15) Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You. 16) Modification of This License. This License is Copyright © 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Open Software License" or "OSL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under <insert your license name here>" or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>Page peel ad banner is another type of banner. It is located in top left or top right corner. a small rolled flying image and upon hovering it with the mouse pointer, the banner is unrolled revealing another image which can be clicked. After clicking it, the visitor is sent to banner's destination URL with tracking parameters included in the URL.</summary>
|
10 |
+
<description>Page Peel ad banner can be used for promotion. the destination url can be of any category or product which you want to promote. On hovering the Image it will reveal the big image. Which when clicked will lead you to the destination url defined. these is a simple nice extension for promoting sale.
|
11 |
+

|
12 |
+
these extension is very flexible with controlled feature, you donot require any expertise for installing it. simply plug and play.</description>
|
13 |
+
<notes>These is simple plug and play extension.</notes>
|
14 |
+
<authors><author><name>Deepak Mallah</name><user>dephmagento</user><email>deepak.mallah@gmail.com</email></author></authors>
|
15 |
+
<date>2014-02-03</date>
|
16 |
+
<time>05:36:53</time>
|
17 |
+
<contents><target name="magecommunity"><dir name="Deph"><dir name="Peel"><dir name="Helper"><file name="Data.php" hash="591b1d51d4f14c2321751e7fdcab80fd"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Direction.php" hash="4e2e0d592b22d7720ca9e1a7cf17add8"/></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="2dd3d7c0af61696bac9d5073d0da4e7c"/><file name="system.xml" hash="c1fce914e8da70eee213f35e5378bb77"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="peel.xml" hash="afff4c4cef107a04ba41c0bc676b8e75"/></dir><dir name="template"><file name="peel.phtml" hash="c675cf5bd832da7888d3419846cae939"/></dir></dir></dir><dir name="default"><dir name="default"><dir name="layout"><file name="peel.xml" hash="afff4c4cef107a04ba41c0bc676b8e75"/></dir><dir name="template"><file name="peel.phtml" hash="c675cf5bd832da7888d3419846cae939"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Deph_Peel.xml" hash="b26e164ccbc2820373b3dac6e97e288b"/></dir></target><target name="magemedia"><dir name="pageear"><dir name="default"><file name="pageear_b.jpg" hash="c0db11bf80b5f120f76847550eda96dc"/><file name="pageear_s.jpg" hash="39a54660dff1f1607d3bf58bd22bbd41"/><file name="sample_of_frame-500x500.JPG" hash="7eb6da0e042151cf4df7342b34f99802"/><file name="sample_of_frame-500x500_1.JPG" hash="7eb6da0e042151cf4df7342b34f99802"/><file name="sample_of_frame-500x500_2.JPG" hash="7eb6da0e042151cf4df7342b34f99802"/><file name="th_despicable-minions-100x100.jpg" hash="064dee70d51f7faf9c147ed2bb1436fd"/><file name="th_despicable-minions-100x100_1.jpg" hash="064dee70d51f7faf9c147ed2bb1436fd"/><file name="th_despicable-minions-100x100_2.jpg" hash="064dee70d51f7faf9c147ed2bb1436fd"/><file name="th_despicable-minions-100x100_3.jpg" hash="064dee70d51f7faf9c147ed2bb1436fd"/></dir></dir></target><target name="mage"><dir name="js"><dir name="pageear"><file name="AC_OETags.js" hash="2ee97c9ca85f6f5ceffb1670d9644a14"/><file name="pageear.js" hash="eba1a60251c50d30cdbc985b4c5a9fb0"/><file name="pageear_b.jpg" hash="c0db11bf80b5f120f76847550eda96dc"/><file name="pageear_b.swf" hash="aed59ec07ee2f017f748c55af3152c95"/><file name="pageear_s.jpg" hash="39a54660dff1f1607d3bf58bd22bbd41"/><file name="pageear_s.swf" hash="52d6b0998c250e96f26dd5251eea5066"/><file name="zoom.mp3" hash="c1278342efc269cfa16d9ad023645c27"/></dir></dir></target></contents>
|
18 |
+
<compatible/>
|
19 |
+
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
+
</package>
|