Version Notes
Compatibility for all themes added.
Download this release
Release Info
Developer | Magento Core Team |
Extension | FancyFeedback |
Version | 1.0.2.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.0.9 to 1.0.2.0
app/design/frontend/default/default/layout/fancyfeedback.xml
CHANGED
@@ -1,7 +1,14 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<layout version="0.1.0">
|
|
|
|
|
3 |
<default>
|
|
|
|
|
|
|
4 |
</default>
|
|
|
|
|
5 |
<fancyfeedback_index_index>
|
6 |
<reference name="content">
|
7 |
<block type="fancyfeedback/fancyfeedback" name="fancyfeedback" template="fancyfeedback/fancyfeedback.phtml" />
|
1 |
<?xml version="1.0"?>
|
2 |
<layout version="0.1.0">
|
3 |
+
|
4 |
+
<!-- NEW CODE BLOCK START // All page handler -->
|
5 |
<default>
|
6 |
+
<reference name="content">
|
7 |
+
<block type="fancyfeedback/fancyfeedback" name="fancyfeedback" template="fancyfeedback/fancyfeedback.phtml" />
|
8 |
+
</reference>
|
9 |
</default>
|
10 |
+
<!-- NEW CODE BLOCK END // All page handler -->
|
11 |
+
|
12 |
<fancyfeedback_index_index>
|
13 |
<reference name="content">
|
14 |
<block type="fancyfeedback/fancyfeedback" name="fancyfeedback" template="fancyfeedback/fancyfeedback.phtml" />
|
app/design/frontend/default/default/template/catalog/navigation/top.phtml
DELETED
@@ -1,305 +0,0 @@
|
|
1 |
-
<?php $_menu = $this->renderCategoriesMenuHtml(0,'level-top') ?>
|
2 |
-
<?php if($_menu): ?>
|
3 |
-
<div class="nav-container">
|
4 |
-
<ul id="nav">
|
5 |
-
<?php echo $_menu ?>
|
6 |
-
</ul>
|
7 |
-
</div>
|
8 |
-
<?php endif ?>
|
9 |
-
|
10 |
-
|
11 |
-
<?php
|
12 |
-
if(Mage::getStoreConfig('fancyfeedbackconfig/fancyfeedback_group/fancyfeedback_enabled'))
|
13 |
-
{
|
14 |
-
?>
|
15 |
-
<style>
|
16 |
-
#feedback_holder{
|
17 |
-
position: fixed;
|
18 |
-
display:none;
|
19 |
-
top: 300px;
|
20 |
-
cursor:pointer;
|
21 |
-
}
|
22 |
-
#feedback{
|
23 |
-
width: 362px;
|
24 |
-
padding: 10px 0px 10px 10px;
|
25 |
-
/*position: absolute;
|
26 |
-
top: 100px;
|
27 |
-
display: block;*/
|
28 |
-
}
|
29 |
-
#feedback #formdiv{
|
30 |
-
position: fixed;
|
31 |
-
width: 300px;
|
32 |
-
float: left;
|
33 |
-
background-color: #6f115c;
|
34 |
-
padding: 0px 5px 5px 5px;
|
35 |
-
-moz-border-radius-bottomright: 6px;
|
36 |
-
-moz-border-radius-bottomleft: 6px;
|
37 |
-
border-bottom-right-radius:6px;
|
38 |
-
border-bottom-left-radius:6px;
|
39 |
-
min-height:100px;
|
40 |
-
display:none;
|
41 |
-
}
|
42 |
-
#feedback label{
|
43 |
-
font:bold 11px arial;
|
44 |
-
color: #febaf9;
|
45 |
-
}
|
46 |
-
#feedback textarea{
|
47 |
-
width: 290px;
|
48 |
-
height: 100px;
|
49 |
-
color: #fcd1f2;
|
50 |
-
font: normal 11px verdana;
|
51 |
-
border: none;
|
52 |
-
padding: 5px;
|
53 |
-
background-color: #943080;
|
54 |
-
-moz-box-shadow: inset 1px 1px 1px #4c0b3f;
|
55 |
-
-webkit-box-shadow: inset 1px 1px 1px #4c0b3f;
|
56 |
-
resize: none; /* disable extending textarea in chrome */
|
57 |
-
}
|
58 |
-
#feedback input[type="text"]{
|
59 |
-
color: #606060;
|
60 |
-
font: normal 11px verdana;
|
61 |
-
padding: 3px;
|
62 |
-
width: 200px;
|
63 |
-
height: 25px;
|
64 |
-
border: none;
|
65 |
-
color: #fcd1f2;
|
66 |
-
-moz-border-radius: 4px;
|
67 |
-
-webkit-border-radius: 4px;
|
68 |
-
background-color: #943080;
|
69 |
-
-moz-box-shadow: inset 1px 1px 1px #4c0b3f;
|
70 |
-
-webkit-box-shadow: inset 1px 1px 1px #4c0b3f;
|
71 |
-
}
|
72 |
-
#feedback input[type="submit"]{
|
73 |
-
background-color: #ffaffa;
|
74 |
-
border: none;
|
75 |
-
color: #6f115c;
|
76 |
-
font:bold 11px arial;
|
77 |
-
padding: 2px 6px;
|
78 |
-
-moz-border-radius: 8px;
|
79 |
-
-webkit-border-radius: 8px;
|
80 |
-
cursor: pointer;
|
81 |
-
}
|
82 |
-
#feedback .left_btn,#feedback .right_btn{
|
83 |
-
width: 26px;
|
84 |
-
height: 100px;
|
85 |
-
float: left;
|
86 |
-
cursor: pointer;
|
87 |
-
}
|
88 |
-
|
89 |
-
#feedback .feed_close{
|
90 |
-
cursor: pointer;
|
91 |
-
margin:0px 0px 0px 0px;
|
92 |
-
float:right;
|
93 |
-
}
|
94 |
-
#feedback .feed_close a{
|
95 |
-
color:#FCD1F2;
|
96 |
-
font-size:9px;
|
97 |
-
text-decoration:none;
|
98 |
-
}
|
99 |
-
#feedback .feed_close a:hover{
|
100 |
-
text-decoration:underline;
|
101 |
-
}
|
102 |
-
#feedback .feed_close img{
|
103 |
-
height:15px; width:16px;
|
104 |
-
}
|
105 |
-
#error{
|
106 |
-
color:#fff;
|
107 |
-
padding:4px;
|
108 |
-
font-size:11px;
|
109 |
-
font-weight:bold;
|
110 |
-
}
|
111 |
-
.feedback-logo{
|
112 |
-
-webkit-transform: rotate(-90deg);
|
113 |
-
-moz-transform: rotate(-90deg);
|
114 |
-
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
|
115 |
-
writing-mode: tb-rl;
|
116 |
-
right:-45px;
|
117 |
-
font-size: 14px;
|
118 |
-
font-family:Verdana;
|
119 |
-
font-weight:900;
|
120 |
-
letter-spacing:2px;
|
121 |
-
padding: 3px;
|
122 |
-
width: 100px;
|
123 |
-
height: 30px;
|
124 |
-
color: #FCD1F2;
|
125 |
-
-moz-border-radius: 5px;
|
126 |
-
-webkit-border-radius: 5px;
|
127 |
-
background-color: #6f115c;
|
128 |
-
float:right;
|
129 |
-
text-align:center;
|
130 |
-
}
|
131 |
-
</style>
|
132 |
-
|
133 |
-
<div id="feedback_holder" class="feedback-logo">
|
134 |
-
<span>FEEDBACK</span>
|
135 |
-
</div>
|
136 |
-
<!--<div id="feedback_holder" class="right_btn" style="position: fixed; top: 300px; right: 0px; background: none repeat scroll 0% 0% transparent; overflow: hidden;"><img src="<?php echo $this->getJsUrl()?>../media/fancyfeedback/images/feed_right_btn.png" width="26px" height="99px"/></div>-->
|
137 |
-
<div id="feedback">
|
138 |
-
<div id="formdiv" class="formdiv" style="position: fixed; right:0px; float:right; top: 265px;">
|
139 |
-
|
140 |
-
<div id="feedback-side-logo" class="feedback-logo" style="float:left; right:265px; position:absolute; top: 40px; height:20px;">
|
141 |
-
<span>FEEDBACK</span>
|
142 |
-
</div>
|
143 |
-
<div id="feed_close" class="feed_close">
|
144 |
-
<a href="javascript:void(0);">Close</a>
|
145 |
-
<!--<img width="16px" height="15px" src="<?php echo $this->getSkinUrl()?>images/fancyfeedback/feed_close_btn.png" title="Close" alt="Close" />-->
|
146 |
-
</div>
|
147 |
-
|
148 |
-
|
149 |
-
<div class="box">
|
150 |
-
<table border="0"> <tr>
|
151 |
-
<td><label>Name:</label><br/><input type="text" name="name" id="name"/> </td>
|
152 |
-
<td valign="middle" align="right"><!--<div class="feed_close"><img src="<?php echo $this->getSkinUrl()?>images/fancyfeedback/feed_close_btn.png" width="16px" height="15px"/></div>--></td>
|
153 |
-
</tr> <tr>
|
154 |
-
<td colspan="2"><label>Email:</label><br/><input type="text" name="email" id="email"/></td>
|
155 |
-
</tr> <tr>
|
156 |
-
<td colspan="2"><label>Message: </label><br/><textarea rows="5" cols="16" name="msg" id="msg"></textarea></td>
|
157 |
-
</tr>
|
158 |
-
<input type="hidden" id="url" value="<?php echo Mage::getUrl().'fancyfeedback/'; ?>">
|
159 |
-
<tr>
|
160 |
-
<td colspan="2"><input id="submit_btn" type="submit" value="Submit"/><span id="error"></span></td>
|
161 |
-
</tr> </table>
|
162 |
-
</div>
|
163 |
-
</div>
|
164 |
-
|
165 |
-
|
166 |
-
<div class="form_submit"></div>
|
167 |
-
</div>
|
168 |
-
</div>
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
<script type="text/javascript">
|
174 |
-
function getIEVersion()
|
175 |
-
{
|
176 |
-
var ver='';
|
177 |
-
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;
|
178 |
-
var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
|
179 |
-
if (ieversion>=8)
|
180 |
-
ver=8;
|
181 |
-
else if (ieversion>=7)
|
182 |
-
ver=7;
|
183 |
-
else if (ieversion>=6)
|
184 |
-
ver=6;
|
185 |
-
else if (ieversion>=5)
|
186 |
-
ver=5;
|
187 |
-
}
|
188 |
-
else
|
189 |
-
ver=0;
|
190 |
-
|
191 |
-
return ver;
|
192 |
-
}
|
193 |
-
|
194 |
-
var fbh = document.getElementById('feedback_holder');
|
195 |
-
var fbsl = document.getElementById('feedback-side-logo');
|
196 |
-
var fd = document.getElementById('formdiv');
|
197 |
-
|
198 |
-
if(navigator.appName == "Microsoft Internet Explorer")
|
199 |
-
{
|
200 |
-
fbh.style.position = 'absolute';
|
201 |
-
fbh.style.width = '25px';
|
202 |
-
fbh.style.right = '0px';
|
203 |
-
|
204 |
-
fbsl.style.width = '20px';
|
205 |
-
fbsl.style.right = '310px';
|
206 |
-
fbsl.style.top = '0px';
|
207 |
-
|
208 |
-
fd.style.position = 'absolute';
|
209 |
-
fd.style.top = '300px';
|
210 |
-
|
211 |
-
if(getIEVersion() > 6 && getIEVersion()!=0 && getIEVersion()!='')
|
212 |
-
{
|
213 |
-
fbh.style.height = '100px';
|
214 |
-
fbsl.style.height = '100px';
|
215 |
-
fbsl.style.right = '305px';
|
216 |
-
}
|
217 |
-
}
|
218 |
-
fbh.style.display = 'block';
|
219 |
-
fbh.onclick = showForm;
|
220 |
-
document.getElementById('feed_close').onclick = hideForm;
|
221 |
-
document.getElementById('submit_btn').onclick = submitForm;
|
222 |
-
|
223 |
-
function showForm(e)
|
224 |
-
{
|
225 |
-
if (!e) var e = window.event;
|
226 |
-
fbh.style.display = 'none';
|
227 |
-
fd.style.display = 'block';
|
228 |
-
document.getElementById('name').value = '';
|
229 |
-
document.getElementById('email').value = '';
|
230 |
-
document.getElementById('msg').value = '';
|
231 |
-
document.getElementById('submit_btn').removeAttribute('disabled');
|
232 |
-
document.getElementById('error').innerHTML = '';
|
233 |
-
}
|
234 |
-
|
235 |
-
function hideForm(e)
|
236 |
-
{
|
237 |
-
if (!e) var e = window.event;
|
238 |
-
fbh.style.display = 'block';
|
239 |
-
document.getElementById('formdiv').style.display = 'none';
|
240 |
-
}
|
241 |
-
function submitForm(e)
|
242 |
-
{
|
243 |
-
var path = document.getElementById('url').value;
|
244 |
-
var name = document.getElementById('name').value;
|
245 |
-
var email = document.getElementById('email').value;
|
246 |
-
var msg = document.getElementById('msg').value;
|
247 |
-
if(name.length>0 && email.length>0 && msg.length>0)
|
248 |
-
{
|
249 |
-
if(validate_email(email))
|
250 |
-
{
|
251 |
-
document.getElementById('submit_btn').setAttribute('disabled', 'disabled');
|
252 |
-
document.getElementById('error').innerHTML = 'Submitting your feedback...';
|
253 |
-
|
254 |
-
var xhr;
|
255 |
-
try { xhr = new ActiveXObject('Msxml2.XMLHTTP'); }
|
256 |
-
catch (e)
|
257 |
-
{
|
258 |
-
try { xhr = new ActiveXObject('Microsoft.XMLHTTP'); }
|
259 |
-
catch (e2)
|
260 |
-
{
|
261 |
-
try { xhr = new XMLHttpRequest(); }
|
262 |
-
catch (e3) { xhr = false; }
|
263 |
-
}
|
264 |
-
}
|
265 |
-
|
266 |
-
xhr.onreadystatechange = function()
|
267 |
-
{
|
268 |
-
if(xhr.readyState == 4)
|
269 |
-
{
|
270 |
-
if(xhr.status == 200)
|
271 |
-
{
|
272 |
-
document.getElementById('error').innerHTML = xhr.responseText;
|
273 |
-
}
|
274 |
-
else
|
275 |
-
{
|
276 |
-
document.getElementById('error').innerHTML = xhr.status;
|
277 |
-
}
|
278 |
-
}
|
279 |
-
};
|
280 |
-
|
281 |
-
xhr.open("POST", path+"?name="+name+"&email="+email+"&msg="+msg, true);
|
282 |
-
xhr.send(null);
|
283 |
-
}
|
284 |
-
else
|
285 |
-
{
|
286 |
-
document.getElementById('error').innerHTML = '<span style="color:red">Your email seems to be invalid!</span>';
|
287 |
-
}
|
288 |
-
}
|
289 |
-
else
|
290 |
-
{
|
291 |
-
document.getElementById('error').innerHTML = 'Please enter some thing.';
|
292 |
-
document.getElementById('submit_btn').removeAttribute('disabled');
|
293 |
-
}
|
294 |
-
return false;
|
295 |
-
|
296 |
-
}
|
297 |
-
function validate_email(str)
|
298 |
-
{
|
299 |
-
return /^([\w-_.]+)(\.[\w-_.]+)*@([\w\-]+)(\.[\w]{2,7})(\.[a-z]{2})?$/i.test(str);
|
300 |
-
}
|
301 |
-
</script>
|
302 |
-
|
303 |
-
<?php
|
304 |
-
}
|
305 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
+
display:none;
|
9 |
+
top: 300px;
|
10 |
+
cursor:pointer;
|
11 |
+
}
|
12 |
+
#feedback{
|
13 |
+
width: 362px;
|
14 |
+
padding: 10px 0px 10px 10px;
|
15 |
+
/*position: absolute;
|
16 |
+
top: 100px;
|
17 |
+
display: block;*/
|
18 |
+
}
|
19 |
+
#feedback #formdiv{
|
20 |
+
position: fixed;
|
21 |
+
width: 300px;
|
22 |
+
float: left;
|
23 |
+
background-color: #6f115c;
|
24 |
+
padding: 0px 5px 5px 5px;
|
25 |
+
-moz-border-radius-bottomright: 6px;
|
26 |
+
-moz-border-radius-bottomleft: 6px;
|
27 |
+
border-bottom-right-radius:6px;
|
28 |
+
border-bottom-left-radius:6px;
|
29 |
+
min-height:100px;
|
30 |
+
display:none;
|
31 |
+
}
|
32 |
+
#feedback label{
|
33 |
+
font:bold 11px arial;
|
34 |
+
color: #febaf9;
|
35 |
+
}
|
36 |
+
#feedback textarea{
|
37 |
+
width: 290px;
|
38 |
+
height: 100px;
|
39 |
+
color: #fcd1f2;
|
40 |
+
font: normal 11px verdana;
|
41 |
+
border: none;
|
42 |
+
padding: 5px;
|
43 |
+
background-color: #943080;
|
44 |
+
-moz-box-shadow: inset 1px 1px 1px #4c0b3f;
|
45 |
+
-webkit-box-shadow: inset 1px 1px 1px #4c0b3f;
|
46 |
+
resize: none; /* disable extending textarea in chrome */
|
47 |
+
}
|
48 |
+
#feedback input[type="text"]{
|
49 |
+
color: #606060;
|
50 |
+
font: normal 11px verdana;
|
51 |
+
padding: 3px;
|
52 |
+
width: 200px;
|
53 |
+
height: 25px;
|
54 |
+
border: none;
|
55 |
+
color: #fcd1f2;
|
56 |
+
-moz-border-radius: 4px;
|
57 |
+
-webkit-border-radius: 4px;
|
58 |
+
background-color: #943080;
|
59 |
+
-moz-box-shadow: inset 1px 1px 1px #4c0b3f;
|
60 |
+
-webkit-box-shadow: inset 1px 1px 1px #4c0b3f;
|
61 |
+
}
|
62 |
+
#feedback input[type="submit"]{
|
63 |
+
background-color: #ffaffa;
|
64 |
+
border: none;
|
65 |
+
color: #6f115c;
|
66 |
+
font:bold 11px arial;
|
67 |
+
padding: 2px 6px;
|
68 |
+
-moz-border-radius: 8px;
|
69 |
+
-webkit-border-radius: 8px;
|
70 |
+
cursor: pointer;
|
71 |
+
}
|
72 |
+
#feedback .left_btn,#feedback .right_btn{
|
73 |
+
width: 26px;
|
74 |
+
height: 100px;
|
75 |
+
float: left;
|
76 |
+
cursor: pointer;
|
77 |
+
}
|
78 |
+
|
79 |
+
#feedback .feed_close{
|
80 |
+
cursor: pointer;
|
81 |
+
margin:0px 0px 0px 0px;
|
82 |
+
float:right;
|
83 |
+
}
|
84 |
+
#feedback .feed_close a{
|
85 |
+
color:#FCD1F2;
|
86 |
+
font-size:9px;
|
87 |
+
text-decoration:none;
|
88 |
+
}
|
89 |
+
#feedback .feed_close a:hover{
|
90 |
+
text-decoration:underline;
|
91 |
+
}
|
92 |
+
#feedback .feed_close img{
|
93 |
+
height:15px; width:16px;
|
94 |
+
}
|
95 |
+
#error{
|
96 |
+
color:#fff;
|
97 |
+
padding:4px;
|
98 |
+
font-size:11px;
|
99 |
+
font-weight:bold;
|
100 |
+
}
|
101 |
+
.feedback-logo{
|
102 |
+
-webkit-transform: rotate(-90deg);
|
103 |
+
-moz-transform: rotate(-90deg);
|
104 |
+
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
|
105 |
+
writing-mode: tb-rl;
|
106 |
+
right:-45px;
|
107 |
+
font-size: 14px;
|
108 |
+
font-family:Verdana;
|
109 |
+
font-weight:900;
|
110 |
+
letter-spacing:2px;
|
111 |
+
padding: 3px;
|
112 |
+
width: 100px;
|
113 |
+
height: 30px;
|
114 |
+
color: #FCD1F2;
|
115 |
+
-moz-border-radius: 5px;
|
116 |
+
-webkit-border-radius: 5px;
|
117 |
+
background-color: #6f115c;
|
118 |
+
float:right;
|
119 |
+
text-align:center;
|
120 |
+
}
|
121 |
+
</style>
|
122 |
+
|
123 |
+
<!-- Feedback Area // START -->
|
124 |
+
<div id="feedback_holder" class="feedback-logo">
|
125 |
+
<span>FEEDBACK</span>
|
126 |
+
</div>
|
127 |
+
<div id="feedback">
|
128 |
+
<div id="formdiv" class="formdiv" style="position: fixed; right:0px; float:right; top: 265px;">
|
129 |
+
|
130 |
+
<div id="feedback-side-logo" class="feedback-logo" style="float:left; right:265px; position:absolute; top: 40px; height:20px;">
|
131 |
+
<span>FEEDBACK</span>
|
132 |
+
</div>
|
133 |
+
<div id="feed_close" class="feed_close">
|
134 |
+
<a href="javascript:void(0);">Close</a>
|
135 |
+
</div>
|
136 |
+
|
137 |
+
<div class="box">
|
138 |
+
<table border="0">
|
139 |
+
<tr>
|
140 |
+
<td><label>Name:</label><br/><input type="text" name="name" id="name"/> </td>
|
141 |
+
<td valign="middle" align="right"></td>
|
142 |
+
</tr>
|
143 |
+
<tr>
|
144 |
+
<td colspan="2"><label>Email:</label><br/><input type="text" name="email" id="email"/></td>
|
145 |
+
</tr>
|
146 |
+
<tr>
|
147 |
+
<td colspan="2">
|
148 |
+
<label>Message: </label><br/>
|
149 |
+
<textarea rows="5" cols="16" name="msg" id="msg"></textarea>
|
150 |
+
<input type="hidden" id="url" value="<?php echo Mage::getUrl().'fancyfeedback/'; ?>">
|
151 |
+
</td>
|
152 |
+
</tr>
|
153 |
+
<tr>
|
154 |
+
<td colspan="2"><input id="submit_btn" type="submit" value="Submit"/><span id="error"></span></td>
|
155 |
+
</tr>
|
156 |
+
</table>
|
157 |
+
</div>
|
158 |
+
</div>
|
159 |
+
</div>
|
160 |
+
<div class="form_submit"></div>
|
161 |
+
<!-- Feedback Area // END -->
|
162 |
+
|
163 |
+
<script type="text/javascript">
|
164 |
+
function getIEVersion()
|
165 |
+
{
|
166 |
+
var ver='';
|
167 |
+
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;
|
168 |
+
var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
|
169 |
+
if (ieversion>=8)
|
170 |
+
ver=8;
|
171 |
+
else if (ieversion>=7)
|
172 |
+
ver=7;
|
173 |
+
else if (ieversion>=6)
|
174 |
+
ver=6;
|
175 |
+
else if (ieversion>=5)
|
176 |
+
ver=5;
|
177 |
+
}
|
178 |
+
else
|
179 |
+
ver=0;
|
180 |
+
|
181 |
+
return ver;
|
182 |
+
}
|
183 |
+
|
184 |
+
var fbh = document.getElementById('feedback_holder');
|
185 |
+
var fbsl = document.getElementById('feedback-side-logo');
|
186 |
+
var fd = document.getElementById('formdiv');
|
187 |
+
|
188 |
+
if(navigator.appName == "Microsoft Internet Explorer")
|
189 |
+
{
|
190 |
+
fbh.style.position = 'absolute';
|
191 |
+
fbh.style.width = '25px';
|
192 |
+
fbh.style.right = '0px';
|
193 |
+
|
194 |
+
fbsl.style.width = '20px';
|
195 |
+
fbsl.style.right = '310px';
|
196 |
+
fbsl.style.top = '0px';
|
197 |
+
|
198 |
+
fd.style.position = 'absolute';
|
199 |
+
fd.style.top = '300px';
|
200 |
+
|
201 |
+
if(getIEVersion() > 6 && getIEVersion()!=0 && getIEVersion()!='')
|
202 |
+
{
|
203 |
+
fbh.style.height = '100px';
|
204 |
+
fbsl.style.height = '100px';
|
205 |
+
fbsl.style.right = '305px';
|
206 |
+
}
|
207 |
+
}
|
208 |
+
fbh.style.display = 'block';
|
209 |
+
fbh.onclick = showForm;
|
210 |
+
document.getElementById('feed_close').onclick = hideForm;
|
211 |
+
document.getElementById('submit_btn').onclick = submitForm;
|
212 |
+
|
213 |
+
function showForm(e)
|
214 |
+
{
|
215 |
+
if (!e) var e = window.event;
|
216 |
+
fbh.style.display = 'none';
|
217 |
+
fd.style.display = 'block';
|
218 |
+
document.getElementById('name').value = '';
|
219 |
+
document.getElementById('email').value = '';
|
220 |
+
document.getElementById('msg').value = '';
|
221 |
+
document.getElementById('submit_btn').removeAttribute('disabled');
|
222 |
+
document.getElementById('error').innerHTML = '';
|
223 |
+
}
|
224 |
+
|
225 |
+
function hideForm(e)
|
226 |
+
{
|
227 |
+
if (!e) var e = window.event;
|
228 |
+
fbh.style.display = 'block';
|
229 |
+
document.getElementById('formdiv').style.display = 'none';
|
230 |
+
}
|
231 |
+
function submitForm(e)
|
232 |
+
{
|
233 |
+
var path = document.getElementById('url').value;
|
234 |
+
var name = document.getElementById('name').value;
|
235 |
+
var email = document.getElementById('email').value;
|
236 |
+
var msg = document.getElementById('msg').value;
|
237 |
+
if(name.length>0 && email.length>0 && msg.length>0)
|
238 |
+
{
|
239 |
+
if(validate_email(email))
|
240 |
+
{
|
241 |
+
document.getElementById('submit_btn').setAttribute('disabled', 'disabled');
|
242 |
+
document.getElementById('error').innerHTML = 'Submitting your feedback...';
|
243 |
+
|
244 |
+
var xhr;
|
245 |
+
try { xhr = new ActiveXObject('Msxml2.XMLHTTP'); }
|
246 |
+
catch (e)
|
247 |
+
{
|
248 |
+
try { xhr = new ActiveXObject('Microsoft.XMLHTTP'); }
|
249 |
+
catch (e2)
|
250 |
+
{
|
251 |
+
try { xhr = new XMLHttpRequest(); }
|
252 |
+
catch (e3) { xhr = false; }
|
253 |
+
}
|
254 |
+
}
|
255 |
+
|
256 |
+
xhr.onreadystatechange = function()
|
257 |
+
{
|
258 |
+
if(xhr.readyState == 4)
|
259 |
+
{
|
260 |
+
if(xhr.status == 200)
|
261 |
+
{
|
262 |
+
document.getElementById('error').innerHTML = xhr.responseText;
|
263 |
+
}
|
264 |
+
else
|
265 |
+
{
|
266 |
+
document.getElementById('error').innerHTML = xhr.status;
|
267 |
+
}
|
268 |
+
}
|
269 |
+
};
|
270 |
+
|
271 |
+
xhr.open("POST", path+"?name="+name+"&email="+email+"&msg="+msg, true);
|
272 |
+
xhr.send(null);
|
273 |
+
}
|
274 |
+
else
|
275 |
+
{
|
276 |
+
document.getElementById('error').innerHTML = '<span style="color:red">Your email seems to be invalid!</span>';
|
277 |
+
}
|
278 |
+
}
|
279 |
+
else
|
280 |
+
{
|
281 |
+
document.getElementById('error').innerHTML = 'Please enter some thing.';
|
282 |
+
document.getElementById('submit_btn').removeAttribute('disabled');
|
283 |
+
}
|
284 |
+
return false;
|
285 |
+
|
286 |
+
}
|
287 |
+
function validate_email(str)
|
288 |
+
{
|
289 |
+
return /^([\w-_.]+)(\.[\w-_.]+)*@([\w\-]+)(\.[\w]{2,7})(\.[a-z]{2})?$/i.test(str);
|
290 |
+
}
|
291 |
+
</script>
|
292 |
+
|
293 |
+
<?php
|
294 |
+
}
|
295 |
+
?>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>FancyFeedback</name>
|
4 |
-
<version>1.0.0
|
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>
|
10 |
-
<description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>Arvind Bhardwaj</name><user>auto-converted</user><email>bhardwajsonheight@gmail.com</email></author></authors>
|
13 |
<date>2011-02-14</date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="fancyfeedback.xml" hash="0c5dae129ffeb852b128d234ffa1a2d1"/></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="fancyfeedback.xml" hash="
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>FancyFeedback</name>
|
4 |
+
<version>1.0.2.0</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>Compatibility for all themes added.</summary>
|
10 |
+
<description>Compatibility for all themes added.</description>
|
11 |
+
<notes>Compatibility for all themes added.</notes>
|
12 |
<authors><author><name>Arvind Bhardwaj</name><user>auto-converted</user><email>bhardwajsonheight@gmail.com</email></author></authors>
|
13 |
<date>2011-02-14</date>
|
14 |
+
<time>10:36:40</time>
|
15 |
+
<contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="fancyfeedback.xml" hash="0c5dae129ffeb852b128d234ffa1a2d1"/></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="fancyfeedback.xml" hash="d7f96b180b01ca7b93743525117c362e"/></dir></dir></dir></dir><dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="fancyfeedback"><file name="fancyfeedback.phtml" hash="07328731cd0b0332773ffc6f4ede1f50"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="WebspeaksFeedback_Fancyfeedback.xml" hash="257bf9c32ee26ef94a05e856846e998d"/></dir></target><target name="magelocal"><dir name="WebspeaksFeedback"><dir name="Fancyfeedback"><dir name="Block"><file name="Fancyfeedback.php" hash="d02b3f93ba6ee94bc74b54ef25046fd9"/><file name="Fancyfeedbacksettings.php" hash="f04fc609ce337105787dcbb256c636eb"/><dir name="Adminhtml"><file name="Fancyfeedback.php" hash="cf620a2b1f3113946638c20fb6ad3e41"/><file name="Fancyfeedbacksettings.php" hash="52706a0cb59be12f73cc5e8d8792543a"/><dir name="Fancyfeedback"><file name="Edit.php" hash="9f86528100061fd986763966d3bc0e75"/><file name="Grid.php" hash="c5bce27e2cee5d1ca0ead9f4cdef94d7"/><dir name="Edit"><file name="Form.php" hash="4b428d7015b1b30797cb238a48635e96"/><file name="Tabs.php" hash="343574517ed6498b3fd774e37856b4f7"/><dir name="Tab"><file name="Form.php" hash="339e16730e24adbe7c507a532a76e973"/></dir></dir></dir><dir name="Fancyfeedbacksettings"><file name="Edit.php" hash="2da6ba8586c5ae7b16d823551f581786"/><file name="Grid.php" hash="ae6d02768f3914c6a19d1397effe8077"/><dir name="Edit"><file name="Form.php" hash="dd2cbef4a22f03a1678d9e0eb7406cd3"/><file name="Tabs.php" hash="d7b8374aa1a7bee3ece8f1e70d2521a6"/><dir name="Tab"><file name="Form.php" hash="1a3fae0d48a7d911b704f88e5b66eede"/></dir></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="883b771fad3617d81126076f602f9b16"/><dir name="Adminhtml"><file name="FancyfeedbackController.php" hash="e642bdf0842e42461e61659946f3ab92"/><file name="FancyfeedbacksettingsController.php" hash="2d5ce7b4d6a5a96fa6b847ee78e1643b"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="f474b64ecee5a0c40deb8fae6a65b90e"/><file name="config.xml" hash="bd6629862ea5ecc50c1a76d55279abaf"/><file name="system.xml" hash="60190e2b1846d3ebbc58dbd2ed36690a"/></dir><dir name="Helper"><file name="Data.php" hash="b740042b28249ba9ad094aec306a595e"/></dir><dir name="Model"><file name="Fancyfeedback.php" hash="5b7c332074e592ed84f4d1ecd43495e9"/><file name="Fancyfeedbacksettings.php" hash="0b7f8532742919d1f058d7bc7ba9f7b5"/><file name="Status.php" hash="2abfc9c042beba1ca72f700731f97097"/><dir name="Mysql4"><file name="Fancyfeedback.php" hash="d941d2fa2dfcfc130ab198057ad2ed9d"/><file name="Fancyfeedbacksettings.php" hash="2345af5cd69086b36e727b5404b47a22"/><dir name="Fancyfeedback"><file name="Collection.php" hash="c50573841e863124f474e492225cb11c"/></dir><dir name="Fancyfeedbacksettings"><file name="Collection.php" hash="e2becf3a961c00f105a28bba24ef708a"/></dir></dir></dir><dir name="sql"><dir name="fancyfeedbacksettings_setup"><file name="mysql4-install-0.1.0.php" hash="bf4179597e398cb8609e68760e2f3991"/></dir><dir name="fancyfeedback_setup"><file name="mysql4-install-0.1.0.php" hash="26912548fc55ec16d36db173e62d7435"/></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|